PDA

View Full Version : Getting the URL in PHP



Owen
April 15th, 2001, 18:53
I think the title pretty much explains it.

What is the code you use to determine the URL of the file being accessed by the browser(with the query string). I know how to do it in perl, but is it the same in PHP?

ashben
April 16th, 2001, 09:00
$HTTP_SERVER_VARS["PHP_SELF"]