note 13827 added to function.getallheaders.php

From: Date: Wed, 04 Jul 2001 15:21:14 +0000
Subject: note 13827 added to function.getallheaders.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14980@lists.php.net to get a copy of this message
I use this code to set PHP_AUTH_USER and PHP_AUTH_PW from the authorization header when running as CGI. if ($PHP_CGI) { $A = split(' ', getenv("HTTP_AUTHORIZATION")); $up = base64_decode($A[1]); $PHP_AUTH_USER = substr($up,0,strpos($up,':')); $PHP_AUTH_PW = substr($up,strpos($up,':')+1); } http://www.php.net/manual/en/function.getallheaders.php

« previous php.notes (#14980) next »