PDA

View Full Version : any tutorials for:



chrisclick
June 17th, 2007, 02:08 PM
how to make a php database installer...

I am making anoter blog and this one i want to have an installer... Anyone know of any easy to follow tutorials on how to do this?

simplistik
June 17th, 2007, 02:13 PM
you have to have a what? what exactly do you think a "database installer" is supposed to do cause i've never heard of that.

danulf
June 17th, 2007, 02:16 PM
you mean a php script that sets up the database? That's the only thing I can think about that could fit that description :D

evildrummer
June 17th, 2007, 02:17 PM
Just write down the SQL for creating all the tables then have it ask for database name and other info needed write it to a config.php file then run some SQL

evildrummer
June 17th, 2007, 02:49 PM
Here is the order this should be done + some links to tuts:

1. Create form for accepting database info, - Millions of tutorials
2. Get info about database and put into array - http://www.w3schools.com/php/php_forms.asp
3. Write all database stuff to a config.php file. - http://uk2.php.net/file_put_contents
4. Include (http://uk2.php.net/manual/en/function.include.php) config.php file into another php file
5. Run SQL for creating tables - http://www.freewebmasterhelp.com/tutorials/phpmysql