I saw another post on this that got no response, I figure I should try again before filing another bug report. I've got some perl cgi scripts that I have to keep, and I need them to do some things in php that are already done in php, it's not really practical to rewrite either of these so it's all in the same language.
So I need to execute a php script from the perl cgi. The php script works fine from a command line. It works fine from a command line as the webserver user. But it won't work from a perl cgi script. Here's what I've tried and the result of each. 1) put #!/usr/local/bin/php at the top of the php file call from perl with `/path/to/script arg1 arg2` Result: php returns "No input file specified" 2) left out #! in file call from perl with `/path/to/php /path/to/script arg1 arg2` Result: no arguments get passed to script 3) left out #! in file call from perl with `/path/to/php "/path/to/script arg1 arg2"` Result: php returns "No input file specified" 4) left out #! in file call from perl with `/path/to/php -f /path/to/script arg1 arg2` Result: php returns "No input file specified" Is this a bug? Am I doing something wrong here? This should work... -- Chad Cunningham [EMAIL PROTECTED] "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is bad! Oh beware the other head of science, Arthur, it bites!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]