#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    usa
    Posts
    4
    Rep Power
    0
    storing username and password in a text file or in a mysql table?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Seaside, CA
    Posts
    84
    Rep Power
    15
    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    59
    Rep Power
    15
    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.

    Chris

Similar Threads

  1. recommended data type for receipt number?
    By lottos in forum MySQL Help
    Replies: 2
    Last Post: January 11th, 2004, 09:15 PM
  2. Replies: 1
    Last Post: August 15th, 2003, 05:11 PM
  3. Replies: 4
    Last Post: April 16th, 2003, 09:23 PM
  4. Replies: 1
    Last Post: April 10th, 2003, 08:49 AM
  5. sessions and recommended procedure
    By bakedbean in forum PHP Development
    Replies: 2
    Last Post: September 5th, 2002, 09:17 AM

IMN logo majestic logo threadwatch logo seochat tools logo