Re: HTTP Environment Varialbles

From: Date: Thu, 06 Dec 2001 22:45:24 +0000
Subject: Re: HTTP Environment Varialbles
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-76960@lists.php.net to get a copy of this message
var_dump($HTTP_SERVER_VARS); var_dump($HTTP_POST_VARS); var_dump($HTTP_GET_VARS); var_dump($HTTP_COOKIE_VARS); var_dump($HTTP_ENV_VARS); since 4.1.0 these are deprecated. Use $_SERVER, $_POST, $_GET, $_COOKIE, $_ENV Regards, Andrey Hristov ----- Original Message ----- From: "Alex Shi" <chpshi@netvigator.ca> To: <php-general@lists.php.net> Sent: Friday, December 07, 2001 12:41 AM Subject: [PHP] HTTP Environment Varialbles > Hi, > > I have a question about how we can read environment variables. In perl we > can > do this as following: > > $caller = $ENV{'HTTP_REFERER'}; > $doc_name = $ENV{'DOCUMENT_NAME'}; > $visitor_ip = $ENV{'REMOTE_ADDR'}; > $visitor_host = $ENV{'REMOTE_HOST'}; > > Actually in Perl, either SSI or CGI, we can get all the environment > variables. > > How can we do the same thing in PHP? > > Alex > > > -- > 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 > >

« previous php.general (#76960) next »