I have several cron jobs that I use to get data from external XML files and the likes to keep out site updated. Sometimes these fail if the outside sources server is not on the up and up or whatever. So I setup a section that would allow an admin to rerun the script. Basically the cron job is just to run a job like this:
which works great. Now I am trying to get this to happen from a call from something like exec(), passthru(), system(), or something. Right now, nothing works! I have this:
Code: Select all
$command = escapeshellcmd('php /path/to/files/file.php 2008 08 5 0');
system($command, $output);
$command is a perfectly valid command, works perfectly from the command line, but I get this response from a system() call:
Status: 404
X-Powered-By: PHP/5.2.3
Content-type: text/html
No input file specified.
So I'm like, blah. I thought, "maybe permissions" but alas, nope. So, can someone help me out here?