Bug #17806 Updated: SCRIPT_NAME wrong in CGI mode
| From: | jan@php.net | Date: | Sun, 07 Jul 2002 16:23:57 +0000 |
| Subject: | Bug #17806 Updated: SCRIPT_NAME wrong in CGI mode | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-13384@lists.php.net to get a copy of this message | ||
ID: 17806
Updated by: jan@php.net
Reported By: schirmer@taytron.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.1.2
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-06-17 15:50:59] schirmer@taytron.net
Script is described in the doc as:
'SCRIPT_NAME'
Contains the current script's path. This is useful for pages which need
to point to themselves.
This is true for the mod_php version. But if you are running php as CGI
(under Apache at least) it isn't true. SCRIPT_NAME then points to the
php bin path, not the script name.
Example (Apache conf):
ScriptAlias /php-engine /web/tools/php
Action x-php-cgi /phh-engine/php
would result in a SCRIPT_NAME of
/php-engine/php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17806&edit=1