database for php?
- Started
- Last post
- 10 Responses
- ********
do you have to have a database to do php stuff, like say a contact form, or what can u do with out a db, if possible....
- unfittoprint0
no db is required for a simple contact form.
altough saving user's info in some db table can be quite useful...
- ********0
no but typically MySQL works well with this, such as what they are using here. ;)
- instantok0
you can write to xml files to save info if you don't want to use a db...i am far from fluent in php tho so i cant say that doing so wont give you problems with things like security and expansion...it works for small things tho and is quite useful
- ********0
that's a nice thing, using XML instead of using a DB, awesome.
- ********0
but I'm assuming you can't password protect using XML?
- instantok0
you can do password protected stuff...it just gets trickier with where you store them and it is less secure than using a db
- sparker0
if it is just a simple contact form, why not just use the php "mail()" function?
can you find out more http://php.net.
- corin0
I used this link directory from http://www.hitcode.com/products/… ,it uses php and no database, i think its called using s a flat file system, just text files so try searching for that.
- ********0
cool
- quik0
Using a database is just the easier way of doing things, BUT:
if you were to use an xml file (waste of time imo) you could place it above the webserver eg: /home/public_html/ and access it through php that way.. then use md5 encryption for passwords and alike.. just a thought.