Capture the whole URL

From: Date: Thu, 22 Feb 2007 22:26:57 +0000
Subject: Capture the whole URL
Groups: php.general 
Request: Send a blank email to php-general+get-249265@lists.php.net to get a copy of this message
Hey - - I must be missing something, but in a URL such as: diddly.com?id=fred&total=goof $_SERVER['PHP-SELF'] gives me the diddley.com part. I want to capture the whole URL. The documentation makes it seem like $_SERVER['REQUEST_URI'] is supposed to do that, but I get an "Undefined Index" error. Do I have to enable this somehow? I realize that I could recreate the rest of the URL from $_GET's, but I'd rather not if I don't have to. PHP 5.1 Ken

« previous php.general (#249265) next »