Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User settings in file not database

Status
Not open for further replies.

Extreme43

Programmer
Dec 21, 2004
23
AU
Hey,

I wanted to put all the user settings in a file on my webserver i just have a few questions i need answered

1. would it be alot slower to have 500 users in the data file then in a mysql database?

2. I have made a script to add the users into the data file using Arrays but it rewrites the whole file to insert a user at the end because of the close braces. Is it possible to just delete the end braces and add info and a brace...?

3. Is their a better way to have the users in a file


I need it in a file so it can run easily without a database
 
This is much easier to do with a database.
It will also be *way* faster!

if you are to run a userlist in a flatfile, I would recommend you to find a guestbook script, which has an admin interface.

then you can see how it builds it's flatfile and how the admin interface finds the correct posts that you can edit or delete.

I would however do it in php/mysql.

Olav Alexander Mjelde
Admin & Webmaster
 
hmm
yea i just want to explore and see some other stuff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top