note 94225 added to reserved.variables.server
| From: | pgl at yoyo dot org | Date: | Fri, 23 Oct 2009 09:34:36 +0000 |
| Subject: | note 94225 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162006@lists.php.net to get a copy of this message | ||
A note about $PHP_SELF with Apache RewriteRules: if the RewriteRule is added at the server config
level (ie, in httpd.conf), then $PHP_SELF will be similar to the REQUEST_URI. However, if the
RewriteRule is set on a per-directory basis (ie, in a .htaccess file), then it will be the name of
the file itself.
eg, with a rule like this:
RewriteRule /arse/test /var/www/arse.php?var=test
- in .htaccess, $PHP_SELF will be arse.php
- in httpd.conf, $PHP_SELF will be /arse/test
----
Server IP: 87.124.86.45
Probable Submitter: 78.86.201.142 (proxied: 78.86.201.142)
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php
Edit -- https://master.php.net/note/edit/94225
Del: integrated -- https://master.php.net/note/delete/94225/integrated
Del: useless -- https://master.php.net/note/delete/94225/useless
Del: bad code -- https://master.php.net/note/delete/94225/bad+code
Del: spam -- https://master.php.net/note/delete/94225/spam
Del: non-english -- https://master.php.net/note/delete/94225/non-english
Del: in docs -- https://master.php.net/note/delete/94225/in+docs
Del: other reasons-- https://master.php.net/note/delete/94225
Reject -- https://master.php.net/note/reject/94225
Search -- https://master.php.net/manage/user-notes.php