I’m experiencing some weird problems with my cronjobs.
I have some php scripts that need to be run with a cron job and up until a couple of days they did run with no problem
It all began to break down then, when all such scripts stopped running in their regular scheduled fashion. All of them read external config files and DB connection scripts (first ones with php file() and the latter with a require() ). the problem is that these scripts are failing because, when run as crons, the system can’t seem to open the includes and config files
(for example: Warning: file(status.txt): failed to open stream: No such file or d
irectory in /home/.patenkats…)
odd thing: If I run the scripts directly from the address bar in my browser, they do run with no problem and they access the config files and DB connection scripts with no problem whatsoever. It only fails when running as cron
This has taken a solid 4 hours of work but I’m still lacking a solution. Keep in mind that, even without any changes to my files, all crons stopped working suddenly after being operative for months… I would really appreciate any help you guys could give
btw… site runs on php5