[snip] I have a php cli that creates a file. It works fine when I execute it from the Linux command line as "php foo > bar". I'm trying to also execute this by clicking a form button on a web page via "system('php foo > bar')". I can see that the file bar gets created but it's always empty. I've tried executing "system('php foo')" (directly to STDOUT) but get no output. I've tried "exec('php foo',$output)" but there's nothing in the array when it's done.
Suggestions??? [/snip] Put something in script foo that will echo out some information echo "foo is running\n"; and then run it from the command line. If that works then run it from your form. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php