note 98929 added to reserved.variables.server
| From: | dragonfighter at osu1 dot php dot net | Date: | Fri, 16 Jul 2010 10:49:16 +0000 |
| Subject: | note 98929 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170896@lists.php.net to get a copy of this message | ||
$path = basename($_SERVER['REQUEST_URI']);
will give you all behind the own accessed php file.
e.g.
http://localhost/rest/myservice.php/captureme
if you want capterme, you can use
$path = basename($_SERVER['REQUEST_URI']);
and you have it.
----
Server IP: 69.147.83.197
Probable Submitter: 87.167.199.180
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php
Edit -- https://master.php.net/note/edit/98929
Del: integrated -- https://master.php.net/note/delete/98929/integrated
Del: useless -- https://master.php.net/note/delete/98929/useless
Del: bad code -- https://master.php.net/note/delete/98929/bad+code
Del: spam -- https://master.php.net/note/delete/98929/spam
Del: non-english -- https://master.php.net/note/delete/98929/non-english
Del: in docs -- https://master.php.net/note/delete/98929/in+docs
Del: other reasons-- https://master.php.net/note/delete/98929
Reject -- https://master.php.net/note/reject/98929
Search -- https://master.php.net/manage/user-notes.php