note 32758 added to function.getenv
| From: | shanx at shanx dot com | Date: | Fri, 06 Jun 2003 00:50:37 +0000 |
| Subject: | note 32758 added to function.getenv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49829@lists.php.net to get a copy of this message | ||
Well, which one should you use?
$_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_NAME'] or
getenv('SCRIPT_NAME') ?
It depends on how you are running PHP (module/CGI) and on what OS.
Well, this is one test: http://sniptools.com/vault/000023.htm
----
Manual Page -- http://www.php.net/manual/en/function.getenv.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32758
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32758&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32758&report=yes