Bug #2672 Updated: compiled for cgi method, all .php3 files say "no input file specified."

From: Date: Sun, 16 Jun 2002 18:18:43 +0000
Subject: Bug #2672 Updated: compiled for cgi method, all .php3 files say "no input file specified."
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10782@lists.php.net to get a copy of this message
ID: 2672 Updated by: sander@php.net Reported By: amos@hmc.com.hk -Status: Open +Status: Bogus Bug Type: Parser error Operating System: solaris 2.5.1 x86, apache 1.3.4 PHP Version: 3.0.12 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-11-05 17:27:21] amos@hmc.com.hk the source can be hacked up to fix this on my system, by editing request_info.c and changing getenv("PATH_TRANSLATED"); to getenv("SCRIPT_FILENAME"); .. there should be a better way though, i don't know too much about c. ------------------------------------------------------------------------ [1999-11-05 17:07:57] amos@hmc.com.hk when calling any .php3 file as cgi, the php shell always just says "no input file specified." the shell is in /usr/local/bin, all security options turned off, running under suexec. i have a feeling that php is expecting sone environment variables to be set that aren't. executing cgi sets these: MAILCHECK=600 OPTIND=1 PATH=/usr/sbin:/usr/bin QUERY_STRING= REMOTE_ADDR=202.72.19.6 REMOTE_HOST=95b REMOTE_PORT=1566 REQUEST_METHOD=GET REQUEST_URI=/test.cgi SCRIPT_FILENAME=/home/www/test.cgi SCRIPT_NAME=/test.cgi SERVER_ADMIN=info_at_hkhosting.com SERVER_NAME=www.hkhosting.com SERVER_PORT=80 SERVER_PROTOCOL=HTTP/1.0 SERVER_SIGNATURE=<ADDRESS>Apache/1.3.4 Server at www.hkhosting.com Port 80</ADDRESS> SERVER_SOFTWARE=Apache/1.3.4 (Unix) TZ=Hongkong ..i saw the thing in the faq about iis doing this, so i tried linking to it from html. no difference. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2672&edit=1

« previous php.bugs (#10782) next »