Re: Address typed in address bar
| From: | Jim Lucas | Date: | Sat, 26 Apr 2003 23:44:04 +0000 |
| Subject: | Re: Address typed in address bar | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145388@lists.php.net to get a copy of this message | ||
Sorry, forgot a couple:
$_SERVER['QUERY_STRING'] // this will give you all the $_GET vars
$_SERVER['PHP_SELF'] // this will give you the path and filename of the
current script.
Jim
----- Original Message -----
From: "Jim Lucas" <phplist@zonedzero.net>
To: "Siddharth" <sidh@hathway.com>; <php-general@lists.php.net>
Sent: Saturday, April 26, 2003 4:34 PM
Subject: Re: [PHP] Address typed in address bar
> sure
>
> $_SERVER['SERVER_PROTOCOL'] // This will tell you if it is. ie: HTTP/1.0
> $_SERVER['HTTPS'] // if this is set to 'on' then you know that
it
> // was a secure page that was requested
> $_SERVER['SERVER_NAME'] // This will give you the exact name
> // typed in the address bar
> $_SERVER['SERVER_PORT'] // this will give you the PORT requested
> // just incase it is something other then port
> 80
> $_SERVER['REQUEST_URL'] // This will give you the full web path to
your
> // current script being accessed
>
> put all these together, you know exactly what address was typed in the
> address bar of the web browser.
>
> Jim Lucas
>
> ----- Original Message -----
> From: "Siddharth" <sidh@hathway.com>
> To: <php-general@lists.php.net>
> Sent: Saturday, April 26, 2003 2:29 PM
> Subject: [PHP] Address typed in address bar
>
>
> > Hello everyone,
> >
> > Is it possible to get the exact address that was typed in the address
> > bar while requesting a PHP file?
> >
> > Thank you.
> >
> > - Sid
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>