Jump to content

PHP / MySQL Installation Script


sfewkes

Recommended Posts

Hi, i have wrote a PHP application but now need to write an installer for it so that it can write the config files to connect to the db and also import the database strcuture from a .sql file, i have searched all over google and can find nothing, i really need help, can anyone point me in the right direction or explain how to do it?

 

Any help greatfully received!

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/192127-php-mysql-installation-script/
Share on other sites

Thats why im posting on here i dont know how to make it, i need to see some example scripts or pointers to help me!

 

Go make a folder called install with a file called install.php with a form that posts data to doinstall.php with the inputs you need, e.g. db host, db user, db pass, etc.

 

Then have goinstall install using what was given.

 

To export your SQL table, use phpMyAdmin and export the table, then copy and paste the SQL into a string.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.