note 60601 deleted from reserved.variables by danbrown
| From: | danbrown@php.net | Date: | Tue, 24 Aug 2010 18:18:07 +0000 |
| Subject: | note 60601 deleted from reserved.variables by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171995@lists.php.net to get a copy of this message | ||
Note Submitter: marsh at NOSPAM-TAKETHATSPAMMER dot uri dot edu
----
Under Windows XP SP2 and IIS, $_SERVER('x') returns a path using forward slash
'/' as the separator, where x is:
PHP_SELF, SCRIPT_NAME
These arguments, however, all return a path using backward slash, '\' as the separator:
__FILE__, SCRIPT_FILENAME, and DOCUMENT_ROOT (if you use one of the methods mentioned previously).
Also note that if the name of the last directory in the document root includes a space, the methods
described above for setting DOCUMENT_ROOT will return a value that drops the everything past the
space.