Executing a CGI script from a PHP script

From: Date: Thu, 06 Sep 2001 13:06:12 +0000
Subject: Executing a CGI script from a PHP script
Groups: php.general 
Request: Send a blank email to php-general+get-66212@lists.php.net to get a copy of this message
The server I am on uses a CGI script to get a count for home pages. With server side includes it is executed using the Apache "exec" SSO directive and works well. The problem with PHP is that the CGI script when executed by Apache sets a lot of environmental variables that apparently aren't set by the PHP script when using system() to run the CGI script. I wondered if there are any commands in PHP4 that will cause PHP/Apache to set the environmental variables the same way as it would when Apache executes a CGI script directly. -- ======================================================================= Patrick Dunford, Christchurch, NZ He makes me lie down in green pastures, he leads me beside quiet waters, he restores my soul. He guides me in paths of righteousness for his name's sake. -- Psalm 23:2-3 http://www.StudyLight.org/desk/?query=Psalm+23:2-3

« previous php.general (#66212) next »