note 19493 deleted from features.http-auth by alindeman

From: Date: Sat, 03 May 2003 13:43:27 +0000
Subject: note 19493 deleted from features.http-auth by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47428@lists.php.net to get a copy of this message
I use apache's built in support for .htaccess, and the following function to grab user details as required. Function GetHttpAuth() { $headers = getallheaders(); $auth=explode(" ",$headers[Authorization]); if ($auth=='') { $auth=explode(" " ,$headers[authorization]); } $authdec=base64_decode($auth[1]); $autharray=explode(":",$authdec); $authname=$autharray[0]; $authpass=$autharray[1]; return($autharray); }

« previous php.notes (#47428) next »