#27539 [Opn->Fbk]: PHP output: No input file specified

From: Date: Wed, 10 Mar 2004 18:27:07 +0000
Subject: #27539 [Opn->Fbk]: PHP output: No input file specified
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56250@lists.php.net to get a copy of this message
ID: 27539 Updated by: sniper@php.net Reported By: barry at teleserver dot es -Status: Open +Status: Feedback Bug Type: CGI related Operating System: Sun Solaris 2.6 PHP Version: 4.3.4 New Comment: Please close the other report, the issue is same. And provide the backtrace of the crash here. Previous Comments: ------------------------------------------------------------------------ [2004-03-10 03:56:35] barry at teleserver dot es First of all thanks for your request. The PHP script seems to work fine from de unix command line: About the C coded CGI: The webserver starts up a normal CGI programmed in C. This CGY starts up the PHP script as it was from the command line, by using the C system() function as followed: system("/disco1/php/test.php"); About apache: For this tests I used the netscape webserver because of some other problems I have using apache with this same configuration and reported as bug: 27540 ------------------------------------------------------------------------ [2004-03-09 19:10:51] sniper@php.net Does it work if you run the script on command line? What do you mean with "I try to start up a PHP script from a C coded binary CGY by the C system() functión" ??? How did you configure PHP for Apache in httpd.conf ?? ------------------------------------------------------------------------ [2004-03-09 12:10:18] barry at teleserver dot es Description: ------------ After instalation and configuratión I try to start up a PHP script from a C coded binary CGY by the C system() functión. The text "No input file specified" appears in the navigator. Configure line:./configure --prefix=/disco1/aplicaciones/QuorumEnterpriseCenter/apache/php_4.3.4 --with-oracle=/disco1/oracle/8.0.4 --with-oci8=/disco1/oracle/8.0.4 --enable-discard-path --enable-sockets --enable-force-cgi-redirect --with-config-file-path=/disco1/aplicaciones/QuorumEnterpriseCenter/apache/php_4.3.4 Changes to php.ini: cgi.force_redirect = 0 Observations: This same configuration with earlier version of PHP works fine. Reproduce code: --------------- PHP script: #!/disco1/aplicaciones/QuorumEnterpriseCenter/apache/php_4.3.4/bin/php <? ?> Expected result: ---------------- Yust nothing, an empty page Actual result: -------------- "No input file specified" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27539&edit=1

« previous php.bugs (#56250) next »