sfewkes Posted February 15, 2010 Share Posted February 15, 2010 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 More sharing options...
yozyk Posted February 15, 2010 Share Posted February 15, 2010 so that it can write the config files to connect to the db and also import the database strcuture from a .sql file Just make it. Link to comment https://forums.phpfreaks.com/topic/192127-php-mysql-installation-script/#findComment-1012573 Share on other sites More sharing options...
sfewkes Posted February 15, 2010 Author Share Posted February 15, 2010 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! Link to comment https://forums.phpfreaks.com/topic/192127-php-mysql-installation-script/#findComment-1012574 Share on other sites More sharing options...
idontkno Posted February 16, 2010 Share Posted February 16, 2010 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. Link to comment https://forums.phpfreaks.com/topic/192127-php-mysql-installation-script/#findComment-1012983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.