Re: [PHP] login without database

2001-04-02 Thread Knut H. Hassel Nielsen
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

Re: [PHP] login without database

2001-04-01 Thread Erick Papadakis
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

Re: [PHP] login without database

2001-03-30 Thread W.D.
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 > > >

Re: [PHP] login without database

2001-03-30 Thread Jan Grafström
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

Re: [PHP] login without database

2001-03-30 Thread Godd
- > 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 >

Re: [PHP] login without database

2001-03-30 Thread Romeo Manzur
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

Re: [PHP] login without database

2001-03-30 Thread Jon Rosenberg
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

[PHP] login without database

2001-03-30 Thread Jan Grafström
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