Possible Duplicate:
getting current URL
I wan’t to use url (with any GET parameters, etc) in PHP code.
So when my website is on url: http:/sample.com/art/id/title I want to display this string in website.
There is also one thing… My code would be fired up on various servers with various url conventions.
Should account for just about any variations you might encounter (although mod_rewrite may screw it up in an un-correctable way, I’m not sure).