How to get a path of url
Posted: Wed Jul 25, 2007 11:26 pm
Hello
I have a url like this
http://www.myweb.com/stories/mystory.php?cls=3012
I will get full url if I use this:
$_SERVER['HTTP_REFERER'];
I want to get a path of this url like:
http://www.myweb.com/stories
How I can do this
Thank you
I have a url like this
http://www.myweb.com/stories/mystory.php?cls=3012
I will get full url if I use this:
$_SERVER['HTTP_REFERER'];
I want to get a path of this url like:
http://www.myweb.com/stories
How I can do this
Thank you