Forum Moderators: coopster
Every 3 hours I run a cron for example the script executed by cron
is: aaa.php
The crontab uses wget and calls aaa.php
What aaa.php does is a join query, and upon the results sends an email
It contains nothing but querries and no other classes/functions than required by MySQL
It all goes well, BUT for some reason any time the cron runs
It self generate an empty file which for an UNKNOWN reason is named by the same name as the cron (aaa.php) and load that file at html root level
Next time around it becomes aaa.php1 etc… etc…
This is driving me nuts, for now in the dev phase it does not really matter
But with a very large number of users I will for no reason load up root level with a ton of the empty files
Any clue?
Done lot of researches
found some instances more or less related
decided to not using any longer WGET
but to use the server path
something to keep in mind is:
since a php file is to be executed one needs to tell the crontab that a php file is to be exec
so pending on your server setup it will look like something in that range:
"your cron schedule" /usr/bin/php (a space, and no / directly after php) /var/www/html/ etc.. to your php file
Plus the whole thing is on ONE LINE