Closed Thread Icon

Preserved Topic: Admin section serving multiple users Pages that link to <a href="https://ozoneasylum.com/backlink?for=21119" title="Pages that link to Preserved Topic: Admin section serving multiple users" rel="nofollow" >Preserved Topic: Admin section serving multiple users\

 
Author Thread
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-24-2001 21:07

Hi guys

I'm writing code for an admin section (in PHP). The website will have the possibility of about 40 different users of the admin section. Everyone will be using the same html form pages to input info for their section of the site into .txt files that will reside inside their own directory.

So to make sure I'm explaining it well enough, there would be one set of html Admin pages that would write to 40 different .txt files. The users login would determine the directory the input was written to. So basically, there may be multiple users of the admin section html pages at one time, but all of them would be writing to different files.

Are there any bottle neck type issues I need to be concerned with in my code?

Thanks
-Butcher-

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 12-24-2001 22:01

1 file at a time might be a problem.

You might have to worry about 2 people logging into the same account at the same time and attempting to access the same file.

That is something to worry about.

It might be better to store the files in a database. It would save some time and offer some more control.

I don't think there would be too many issues here. Just watch out for accessing the same information at the same time, you are going to want to put up blocks on the files, so it can not be accessed by 2 people at the same time for editing.

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-24-2001 22:39

Thanks WarMage

The database isn't a possability this time out.

If I go back through and add an flock() on all the files, should that do the trick?

-Butcher-

« BackwardsOnwards »

Show Forum Drop Down Menu