Page 1 of 1

PHP Installer

Posted: Tue Jun 10, 2008 4:48 pm
by syntax24
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?

Re: PHP Installer

Posted: Tue Jun 10, 2008 4:51 pm
by superdezign
An installer? What would it need to install...?

Do you need it to connect to a database, create tables, and execute queries?

Re: PHP Installer

Posted: Tue Jun 10, 2008 5:04 pm
by syntax24
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?

Re: PHP Installer

Posted: Tue Jun 10, 2008 11:20 pm
by syntax24
no help? :(

Re: PHP Installer

Posted: Wed Jun 11, 2008 12:50 am
by RobertGonzalez
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.

Re: PHP Installer

Posted: Wed Jun 11, 2008 5:25 am
by superdezign
syntax24 wrote:never had to check for connection and whatnot.
Why not...?
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?
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()).