Daniel,
I get: URL: /net1003/people
Thoughts on what I am doing wrong.
Yeah. Not R'ing TFM. dirname() gives you the name of the
directory ABOVE what you pass.
http://php.net/dirname
Thanks for the pointer. You are indeed correct.
-Jason
--
PHP General Mailing List (http://ww
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:
Hi PHP'ers,
PHP 4.4.8 and 5.
say I have a url like:
http://www.mydomain.tld/jason/index.php
In that index.php I want to have a piece of code that runs that tells
me the 'jason' part of the URL so that I can run some custom read only
queries for 'jason'
How can I do this? I know how to do
3 matches
Mail list logo