Which method would you recommend?
Posted: Fri May 17, 2002 6:35 am
I want to create a login area for our development server. Just a simple 2 line form for username and password. When submitted the user will be taken to a page with a list of all versions of their site.
I've already written a script to list all the directories in a single directory and then print out the version information next to each so I'm not bothered about this side of things, it's just how the login will work.
I know how I can do it with MySQL, and this IS an option as MySQL is running on the server anyway and I would not have any problem putting that together but I'd like to know what alternatives there are and what would you recommend. I think MySQL, although simple enough would be overkill for something so simple and have been thinking of trying out XML (I haven't done any XML with PHP yet but I like a challenge) or using just an array. Or even just a text file, I've done some manipulation of files and directories before and am confident I could get something working with this method. Ideally I want all the information to be nicely contained in the one directory. One file for the login page and a text or XML file for the usernames and passwords. I'm not hugely bothered about the security implications of leaving usernames and passwords on the server as all they will do is get the user to their page. All we want is that each client cannot see a list of all the other clients, and I really doubt that anyone is going to go snooping about on our dev server anyway.
Cheers
Lee
I've already written a script to list all the directories in a single directory and then print out the version information next to each so I'm not bothered about this side of things, it's just how the login will work.
I know how I can do it with MySQL, and this IS an option as MySQL is running on the server anyway and I would not have any problem putting that together but I'd like to know what alternatives there are and what would you recommend. I think MySQL, although simple enough would be overkill for something so simple and have been thinking of trying out XML (I haven't done any XML with PHP yet but I like a challenge) or using just an array. Or even just a text file, I've done some manipulation of files and directories before and am confident I could get something working with this method. Ideally I want all the information to be nicely contained in the one directory. One file for the login page and a text or XML file for the usernames and passwords. I'm not hugely bothered about the security implications of leaving usernames and passwords on the server as all they will do is get the user to their page. All we want is that each client cannot see a list of all the other clients, and I really doubt that anyone is going to go snooping about on our dev server anyway.
Cheers
Lee