Does this work on Windows machines? WHat is the $PHP_AUTH_USER and where
does it come from? What should my access.inc.php look like? I saw the
PHP_AUTH_USER on the www.php.net website but looks like it is only possible
on PHP module, not pHP CGI?
Thanks in advance
-----
"Romeo Manzur" <[EMAIL PROTECTED]> wrote:
> require('acces.inc.php');
> if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) && (
> $PHP_AUTH_PW == "$st_PASSWORD" )) ) {
> header("WWW-Authenticate: Basic entrer=\"Admin Basta\"");
> header("HTTP/1.0 401 Unauthorized");
> echo "Access in-autorizado...";
> exit;
> }
>
> where access.inc.php has the variables $st_LOGIN and st_PASSWORDS for
> authenticate you login, you have to put this code before the <html> tag...
> luck...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 07-Mar-01
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]