PHP Installer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
syntax24
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2008 3:25 pm

PHP Installer

Post 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?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: PHP Installer

Post by superdezign »

An installer? What would it need to install...?

Do you need it to connect to a database, create tables, and execute queries?
syntax24
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2008 3:25 pm

Re: PHP Installer

Post 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?
syntax24
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2008 3:25 pm

Re: PHP Installer

Post by syntax24 »

no help? :(
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: PHP Installer

Post 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.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: PHP Installer

Post 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()).
Post Reply