FW: [PHP3] Headers hrom client

From: Date: Mon, 13 Dec 1999 14:43:47 +0000
Subject: FW: [PHP3] Headers hrom client
Groups: php.version4 
Request: Send a blank email to php-version4+get-7850@lists.php.net to get a copy of this message
Hi, I want to get header information from client, but .... I've got info with pfpinfo(), but none of Server Variables is working. Works only Server Variables under ALL_HTTP I'm using: PHP 4b3, IIS 4.0 on WinNT Thanx, Andris -----Original Message----- From: Stanislav Malyshev [mailto:stas@zend.com] Sent: Monday, December 13, 1999 2:10 PM To: Andris Jancevskis Cc: php3@lists.php.net Subject: Re: [PHP3] Headers hrom client AJ>> How to get Header info from client? AJ>> I found only how to send .... AJ>> AJ>> I'm interesting in IP, Host name etc. if you do <?php phpinfo() ?> you'll get a list of variables, which are available to PHP script. HTTP header variables are converted to HTTP_VARIABLE environment variables, like this: User-Agent -> HTTP_USER_AGENT Also, you may look at REMOTE_ADDR, REMOTE_HOST and REMOTE_USER variables. -- Stanislav Malyshev stas@zend.com +972-50-624945

« previous php.version4 (#7850) next »