I have a website which made.
I need to know how i can create a installer for this site. Meaning when user upload the site on to they host first time they get option to inset they database details.
User insert they database details which then they change in config.php file.
also i have tables.sql which i like to run query
I try using
$text = file_get_contents();
but my querys fails as i do have around 32 tables i need to inset into database and all the necessary setting.
PhpMyAdmin (http://www.phpmyadmin.net) is a popular open-source PHP webapp tool for administrating and manipulating MySQL/MariaDB database system.
No, if you installed a web server (e.g. Apache) on your computer it will not include PHP. You need to install it if you need it. There are apps such as WAMP and XAMPP that will install Apache, MySQL and PHP on your computer without any hassle.
There is a number of tools that aim to achieve this, with different feature sets:
These are collected from a blogpost by cweiske
If you dont need a generic tool, the easiest would be to write a simple install script and ask users to run it. This can be as easy as a single file that prints a form and asks for the required details. When submitted, do the necessary install routines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With