Re: login without database

From: Date: Sun, 01 Apr 2001 10:23:08 +0000
Subject: Re: login without database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-46500@lists.php.net to get a copy of this message
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" <rmanzur@isilicom.com.mx> 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

« previous php.general (#46500) next »