note 27089 added to function.getallheaders

From: Date: Fri, 22 Nov 2002 13:14:57 +0000
Subject: note 27089 added to function.getallheaders
Groups: php.notes 
Request: Send a blank email to php-notes+get-39859@lists.php.net to get a copy of this message
I think the previous poster is new to web development, so to keep the confusion down I recommend that other newbies read a tutorial on the HTTP protocol. The poster meant well, but server variables have absolutely nothing to do with this function (nor the HTTP protocol). They aren't a part of the received browser header. getallheaders() will return the entire BROWSER header string to an array. That's all it is supposed to do and as it was pointed out (by smclean) that this is a VERY USEFUL feature for certain applications. That's why I looked up the function in the first place! So, yes, you must use the $_SERVER array to retrieve server variables. And to understand certain variables passed by the server read up on the CGI protocol. -- http://www.php.net/manual/en/function.getallheaders.php http://master.php.net/manage/user-notes.php?action=edit+27089 http://master.php.net/manage/user-notes.php?action=delete+27089 http://master.php.net/manage/user-notes.php?action=reject+27089

« previous php.notes (#39859) next »