Re: [PHP] Capture the whole URL

2007-02-23 Thread Richard Lynch
On Thu, February 22, 2007 4:26 pm, Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: > 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

Re: [PHP] Capture the whole URL

2007-02-23 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Feb 23, 2007, at 7:46 AM, tedd wrote: On Feb 22, 2007, at 10:26 PM, tedd wrote: 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

Re: [PHP] Capture the whole URL

2007-02-23 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Feb 22, 2007, at 4:33 PM, Jochem Maas wrote: do a var_dump($_SERVER); or phpinfo(); to see what you do have available. 'REQUEST_URI' doesn't show. Now I see the line in the documentation that says "You may or may not find any of the following elements..." How do I find out whether

Re: [PHP] Capture the whole URL

2007-02-23 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Feb 23, 2007, at 12:18 AM, Jim Lucas wrote: diddly.com?id=fred&total=goof First of forgoing the http:// missing, this still isn't a qualified URL Yeah, I was just giving an example of what I wanted. echo $_SERVER['REQUEST_URI']; and see what it returns I said in the post, it

Re: [PHP] Capture the whole URL

2007-02-23 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Feb 22, 2007, at 10:26 PM, tedd wrote: 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 ***

Re: [PHP] Capture the whole URL

2007-02-22 Thread Jim Lucas
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: Hey - - I must be missing something, but in a URL such as: diddly.com?id=fred&total=goof First of forgoing the http:// missing, this still isn't a qualified URL you are missing the / after the .com. echo $_SERVER['REQUEST_URI']; and see wh

Re: [PHP] Capture the whole URL

2007-02-22 Thread tedd
At 4:26 PM -0600 2/22/07, Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: 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 $

Re: [PHP] Capture the whole URL

2007-02-22 Thread Jochem Maas
Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: > 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['

[PHP] Capture the whole URL

2007-02-22 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
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