July 12th, 2000, 10:58 AM
storing username and password in a text file or in a mysql table?
July 12th, 2000, 11:09 AM
It's up to you. But if you're going to reference the user name and password elsewhere, I'd put it in a database table. Then you also can use that table with other tables, etc. Plus, as your scripts get more involved, it just seems easier to me to deal with databases than text files.
From the day we're born, we're running out of time.
July 12th, 2000, 12:12 PM
Also if you do decide to use a text file, make sure you make it executable on the server, otherwise if someone finds out the name of the file, they would be able to read right through the web-browser, or better yet make sure you keep it out of your web directories.