Forum Moderators: coopster
A simple question: what would be the easiest way to strip an url that looks like this:
http://www.google.se/search?hl=sv&ie=UTF-8&oe=UTF-8&q=cd+omslag&btnG=S%C3%B6k&meta=cr%3DcountrySE
into this:
http://www.google.se
?
Needless to say, it must work with other domain names as well (including stuff like .co.uk)
Any ideas?
thanx
david
How can I get an entire url like www.example.com/page.php#part2
I need the anchor part, seems all the php $_SERVER variables will only return up to page.php, not the whole string. Is there some function I'm missing that will return the whole url?