note 60503 added to features.http-auth
| From: | marco dot moser at oltrefersina dot it | Date: | Mon, 09 Jan 2006 14:29:31 +0000 |
| Subject: | note 60503 added to features.http-auth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101454@lists.php.net to get a copy of this message | ||
I suggest to demand user's authentication and management to the web server (by .htaccess, ...):
1. configure a global /logon/ directory with a .htaccess file restricted access
2. use fopen wrapper:
$hh = @fopen("http://{$_SERVER['PHP_AUTH_USER']}:{$_SERVER['PHP_AUTH_PW']}".
@{$_SERVER['SERVER_NAME']}/logon/", "r");
if (!$hh) authenticate(); // usual header WWW-Authenticate ...
fclose($hh);
----
Manual Page -- http://www.php.net/manual/en/features.http-auth.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60503
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60503&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60503&report=yes
Search -- http://master.php.net/manage/user-notes.php