Multiple User Login Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bla5e
Forum Contributor
Posts: 234
Joined: Tue May 25, 2004 4:28 pm

Multiple User Login Script

Post 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?
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

Why not use a database? It's very simple, more efficient and much more easier.
bla5e
Forum Contributor
Posts: 234
Joined: Tue May 25, 2004 4:28 pm

Post 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
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

I think I've seen a text file database somewhere around here. Maybe someone was just talking about making one, though.
bla5e
Forum Contributor
Posts: 234
Joined: Tue May 25, 2004 4:28 pm

Post 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:
User avatar
$var
Forum Contributor
Posts: 317
Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto

Post 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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds like a flatfile database is the best option.. maybe SQLite is installed?
User avatar
chrys
Forum Contributor
Posts: 118
Joined: Tue Oct 04, 2005 9:41 am
Location: West Roxbury, MA (Boston)

Post by chrys »

You could also try to get MYSQL support, it's not so out-of-this-world :P
Post Reply