Hi i'm running php4 as CGI. I'm trying to run a php script I wrote with the exec() function (so i can get the script to run in the background, so the user doesn't have to wait). I'm also routing the output to a text file.
my code looks like this:
exec('/usr/local/bin/php /home/.../test.php > test.txt');
I have tried many variations and checked the file paths multiple times. But every time I get the "No Input File Specified" error in my test.txt file.
On the contrary, when I use any standard *nix command (i.e. "ls") the proper output is routed to test.txt
Why is processing a php file different?!? Thanks ahead of time for your help!