Bug #649: CGI-Detection causes "file not found" errors

From: Date: Thu, 13 Aug 1998 08:29:44 +0000
Subject: Bug #649: CGI-Detection causes "file not found" errors
Groups: php.dev 
Request: Send a blank email to php-dev+get-133@lists.php.net to get a copy of this message
From: panther@prz.tu-berlin.de Operating system: Linux 2.0.x PHP version: 3.0.2a PHP Bug Type: Misbehaving function Bug description: Following scenario: I sell digital information and services via Web. There is a perl script doing the payment stuff and executes the apropriate script after successful payment. My intention was a perl statment system ("/usr/local/bin/php", "-q", "$targetscript", "$query_string"); because this works well when i write a perl script contain only this single line and execute it in a shell. From the payment-perl script (invoked by the web server), the php does not accept any commandline parameters, but is neither able to determine the name of the script to execute nor to set the variables from the query string. I even changed the detection of php running as a cgi (four getenv attempts on typical Web-Environmentvariables in main.c), but this didn't work either. What can I do? -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#133) next »