Re: login without database
| From: | Knut H. Hassel Nielsen | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: login without database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46575@lists.php.net to get a copy of this message | ||
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|bob@bob.com
> foo|bar|foobar@foo.com
>
>
> and then just read and write the file with PHP.
>
> Jon
Be sure to crypt the password you're saving in the file. Then you crypt the
passwords coming in to the script with the same salt (se function crypt in the
manual). Then compare the two and see if they differ from each other.
Good luck
--
Knut
------
Knut H. Hassel Nielsen
Principal Engineer / Avdelingsingeniør
Norwegian University of Science and Technology / NTNU
Department of Computer and Information Science / IDI
N-7491 Trondheim, Norway
Phone Office / Telefon jobb : (+47) 73 59 18 46
Fax Office / Telefax jobb : (+47) 73 59 17 33
Cell. Phone / Mobiltelefon : 91 59 86 06