On Fri, 30 Mar 2001, Jon Rosenberg wrote:
> you could use flat files, another words store the user information in a text
> file like below:
> username|pass|email
> bob|fgffsdg|[EMAIL PROTECTED]
> foo|bar|[EMAIL PROTECTED]
>
>
> and then just read and write the file with PHP.
>
> Jon
Be sure to c
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" <[EMAI
just read and write the file with PHP.
>
> Jon
>
>
> - Original Message -
> From: "Jan Grafström" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 30, 2001 11:15 AM
> Subject: [PHP] login without database
>
>
>
Thank You Romeo!
This may be something I can use.
Regards
Jan
Romeo Manzur wrote:
> You can do this:
> 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 Bas
-
> From: "Jan Grafström" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 30, 2001 11:15 AM
> Subject: [PHP] login without database
>
>
> > Hi!
> > Can I use php to make a login system for users? I don´t have a databas
>
You can do this:
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;
}
wh
AIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 11:15 AM
Subject: [PHP] login without database
> Hi!
> Can I use php to make a login system for users? I don´t have a databas
> on my server. I only want to have a few users. When I send variables to
> php th
Hi!
Can I use php to make a login system for users? I don´t have a databas
on my server. I only want to have a few users. When I send variables to
php the string is always cached by IE5.5 and it´s very easy to se the
username and password if you look i cache. Is there a way to get this
done only o
8 matches
Mail list logo