$php_self and query string

For a project I am doing, I need to print out the full url of the current page. I tried using $php_self, but it does not include the query string. Is there any code that I can use that will include the query string?

thanks for your help,

instead of $php_self, try $_SERVER[‘PHP_SELF’]

Thanks for the help. I was a fool, and I was able to use $REQUEST_URI to do get the url and the query string.

and for that, like Sketch said, you should be using $_SERVER[‘REQUEST_URI’]. :slight_smile: just $REQUEST_URI is not going to work with register_globals off.