Hi,
I need to create a simple user register sample for a client. I am not to familiar with a database with php. Should I just create a text file to hold the users for now? Is it much faster and easier? Or is it not very safe to do that?
Thanks
Database or Text file?
Moderator: General Moderators
-
mettlehead
- Forum Newbie
- Posts: 15
- Joined: Fri Oct 11, 2002 11:03 am
- Location: Canada
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
aye, text files are the devil when it comes to holding very sensative materials such as username/passwords...
it's REALLY not that hard at ALL using mysql. I posted a really easy way to authenticate a user using mysql, including the steps to create the database, table, and call the values.
truthfully, if you only learn to use text files, you are seriously going to hurt yourself in the long run when you need to make php scripts that hold customer information, authentication, reports, etc...
it's REALLY not that hard at ALL using mysql. I posted a really easy way to authenticate a user using mysql, including the steps to create the database, table, and call the values.
truthfully, if you only learn to use text files, you are seriously going to hurt yourself in the long run when you need to make php scripts that hold customer information, authentication, reports, etc...
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
Database are designed for these jobs whereas file system isn't. Also .txt you can view the content much more easily than database. Even if you encrypt the password it's still dangerous since you can brute force attack the string. Just learn to use MySQL or PostgreSQL and you can implement it on any other project!