Re: Capture the whole URL
| From: | Ken Kixmoeller -- reply to ken@kixmoeller.com | Date: | Fri, 23 Feb 2007 15:03:38 +0000 |
| Subject: | Re: Capture the whole URL | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249289@lists.php.net to get a copy of this message | ||
On Feb 23, 2007, at 7:46 AM, tedd wrote:
I did this (actually a var_dump) and $_SERVER['REQUEST_URI'] doesn't show up at all. See my message replying to Jochem. Thanks for your code. I'll check it out. KenOn Feb 22, 2007, at 10:26 PM, tedd wrote:Ken: As per my understanding, the $_SERVER['REQUEST_URI'] should give you something -- after all, it's from where the request came from (i.e., your app). In your code, simply do a print_r($_SERVER) and see what happens.Print out these three and you'll see your problem. $_SERVER['SERVER_NAME'] $_SERVER['QUERY_STRING'] $_SERVER['REQUEST_URI']Thanks, Tedd - - REQUEST_URI still generates a "Undefined Index" error SERVER_NAME on my testing server returns its IP ***QUERY_STRING*** is the one I wanted. I didn't see it (but then again, I am working through the worst head cold I have had in years. My head is a solid block. Watta pain.) Many thanks. Ken