RE: [PHP4BETA] No input file specified - what does this mean?
| From: | Zeev Suraski | Date: | Thu, 02 Sep 1999 23:34:24 +0000 |
| Subject: | RE: [PHP4BETA] No input file specified - what does this mean? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4013@lists.php.net to get a copy of this message | ||
Can someone who actually understands the logic of the various ways to obtain the file name, the translated path and DISCARD_PATH take a look at that code?
Zeev
At 20:28 02/09/99 , John Hamlik wrote:
I use the following patch. I turned in a bug report but they said you had to set the document root in php.ini file. I have not been able to get it to work that way. This works for me. John Hamlik --- request_info.c.orig Tue Jul 20 22:01:10 1999-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il+++ request_info.c Tue Jul 20 22:01:28 1999@@ -36,6 +36,7 @@if (!request_info.script_filename) { request_info.script_filename = request_info.php_argv0; } + SG(request_info).path_translated = getenv("PATH_TRANSLATED");#if WIN32|WINNT/* FIXME WHEN APACHE NT IS FIXED */ /* a hack for apache nt because it does not appear to setargv[1] and sets -----Original Message----- From: Luke Pond [mailto:lukep@its.washington.edu] Sent: Thursday, September 02, 1999 9:44 AM To: php4beta@lists.php.net Subject: [PHP4BETA] No input file specified - what does this mean? Hello to everyone. I want to run PHP4b2 as a CGI, but somehow it's not getting the right environment variables from Apache. When I request a .php file, my php binary gets invoked correctly but it produces the output "No input file specified." I'm running Apache 1.3.6 on FreeBSD, and I added the following to my httpd.conf: ScriptAlias /php/ "/usr/local/bin/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php" If I copy my phpv3 binary into /usr/local/bin instead, and then request a .php file, it interprets my script with no problem. Does v4 have a different invocation mechanism due to the security problems experienced with v3? If so, how am I supposed to configure it? thanks for your help ----------------------------------------------- Luke Pond Software Engineer Intelligent Transportation Systems Research Program lukep@its.washington.edu (206) 616-3185 -- PHP 4 Beta -- PHP 4 Beta