How do I go about making an installer for a php script that connects to MYSQL. all I can see that I'd need is to set a few settings such as site name... contact email and such.... and then obviously the mysql table and whatnot.
how do I go about this??? where do I want to start and whatnot?
PHP Installer
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: PHP Installer
An installer? What would it need to install...?
Do you need it to connect to a database, create tables, and execute queries?
Do you need it to connect to a database, create tables, and execute queries?
Re: PHP Installer
you are correct. I haven't used php much to do things like this... i normally do simple CRUD functions to MYSQL, never had to check for connection and whatnot. I can use a config file for the db settings for the php installer to use, but then how do i check to see if the connection is good and then make tables and whatnot?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: PHP Installer
Did you expect help in only six hours?
You write installers like you would any other application. How do you want the installer to install? Code that.
You write installers like you would any other application. How do you want the installer to install? Code that.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: PHP Installer
Why not...?syntax24 wrote:never had to check for connection and whatnot.
The same way you always would...? Make sure that the connection didn't throw an error, and that it is a valid resource (is_resource()).syntax24 wrote:I can use a config file for the db settings for the php installer to use, but then how do i check to see if the connection is good and then make tables and whatnot?