Re: Question about http's variables
| From: | Serhat Artun | Date: | Wed, 26 Jul 2000 09:57:39 +0000 |
| Subject: | Re: Question about http's variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8239@lists.php.net to get a copy of this message | ||
try
<?
phpinfo();
?>
you can find all variables there .. like
HTTP_SERVER_VARS["REMOTE_PORT"] 1064
HTTP_SERVER_VARS["REMOTE_USER"] root
HTTP_SERVER_VARS["SCRIPT_FILENAME"]
/home/httpd/html/testserver/admin/phpinfo/index.php
HTTP_SERVER_VARS["SERVER_ADDR"] 212.252.92.149
you can use them :
echo $SERVER_ADDR
> ----- Original Message -----
> From: Амир Хафизов <hafizov@groteck.ru>
> To: <php-general@lists.php.net>
> Sent: Wednesday, July 26, 2000 12:46 PM
> Subject: [PHP] Question about http's variables
>
>
> > When user visits my page, http server has some info about him (IP, for
> > example). I wish to know full list of these variables in PHP.
> >
> > Thank you,
> >
> > Khafizov Amir
> > Moscow, Russia
> > hafizov@groteck.ru
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>