Re: PHP and getting part of URL
| From: | Jason ML | Date: | Tue, 07 Oct 2008 23:57:43 +0000 |
| Subject: | Re: PHP and getting part of URL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281549@lists.php.net to get a copy of this message | ||
Hi Micah,
dirname($_SERVER['REQUEST_URI']);I have tried that and I dont get the proper URI: Example running print_r($_SERVER); I get: [REQUEST_URI] => /net1003/people/jason/ But then doing: $jason = dirname($_SERVER['REQUEST_URI']); echo "URL: "; echo $jason; I get: URL: /net1003/people Thoughts on what I am doing wrong. Jason