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
bla5e
Forum Contributor
Posts: 234 Joined: Tue May 25, 2004 4:28 pm
Post
by bla5e » Tue Oct 04, 2005 6:21 pm
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
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 » Tue Oct 04, 2005 6:26 pm
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 » Tue Oct 04, 2005 6:44 pm
yeah i know it would be easier but im making a CMS type system for a website that doesnt have mySQL support
Skara
Forum Regular
Posts: 703 Joined: Sat Mar 12, 2005 7:13 pm
Location: US
Post
by Skara » Tue Oct 04, 2005 6:55 pm
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 » Tue Oct 04, 2005 7:14 pm
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
$var
Forum Contributor
Posts: 317 Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto
Post
by $var » Wed Oct 05, 2005 7:53 am
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.
Jenk
DevNet Master
Posts: 3587 Joined: Mon Sep 19, 2005 6:24 am
Location: London
Post
by Jenk » Wed Oct 05, 2005 8:31 am
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Oct 05, 2005 8:39 am
sounds like a flatfile database is the best option.. maybe SQLite is installed?
chrys
Forum Contributor
Posts: 118 Joined: Tue Oct 04, 2005 9:41 am
Location: West Roxbury, MA (Boston)
Post
by chrys » Wed Oct 05, 2005 8:50 am
You could also try to get MYSQL support, it's not so out-of-this-world