pathinfo or other
| From: | Donovan Brooke | Date: | Wed, 15 Feb 2012 21:27:19 +0000 |
| Subject: | pathinfo or other | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-316614@lists.php.net to get a copy of this message | ||
Hello,
What is the best way to get the /somedir/ values in the request URI?
I tried
$t_pathinfo = $_SERVER['PATH_INFO'];
but was given an error of undefined index. After looking at the docs, it appears the error derives from something I may have to do in the .ini file.
However, is there a standard/better way of grabbing the info after the host and before the query string.. perhaps 'SCRIPT_NAME'?
Thanks!
Donovan
--
D Brooke