Page 1 of 1

Multiple User Login Script

Posted: Tue Oct 04, 2005 6:21 pm
by bla5e
I really have no idea how to go about this... I want a login script that allows multiple users without using MySQL.
I wanted to put the users into a .php file and then the script just opens the .php file and makes sure the Usernames matches the passwords.

I thought an array would be the best method for this, but I dont know how to use array :oops:

can anyone help me out or post a script that does what im looking for?

Posted: Tue Oct 04, 2005 6:26 pm
by pilau
Why not use a database? It's very simple, more efficient and much more easier.

Posted: Tue Oct 04, 2005 6:44 pm
by bla5e
yeah i know it would be easier but im making a CMS type system for a website that doesnt have mySQL support :x

Posted: Tue Oct 04, 2005 6:55 pm
by Skara
I think I've seen a text file database somewhere around here. Maybe someone was just talking about making one, though.

Posted: Tue Oct 04, 2005 7:14 pm
by bla5e
aight im just gonna host the mysql db off my box.. so how do i go about this.. or does someone have a code they can share with me please :wink:

Posted: Wed Oct 05, 2005 7:53 am
by $var
i don't think that you can host a db on one box, and reference it in a page on another server.
it just won't connect, something about security.

you can't even do it with CGI-Scripts, which I just found out the other day.

Posted: Wed Oct 05, 2005 8:31 am
by Jenk
I've seen it done with INI files many times but I've also seen quite a few projects use simple text files.

Will see if I can find anything, but don't hold your breath.

Posted: Wed Oct 05, 2005 8:39 am
by feyd
sounds like a flatfile database is the best option.. maybe SQLite is installed?

Posted: Wed Oct 05, 2005 8:50 am
by chrys
You could also try to get MYSQL support, it's not so out-of-this-world :P