Making an installation script
Posted 11 August 2006 - 06:46 PM
I've been programming in PHP for around 3 years now, but so far I never needed to make an installation script (everything I made was for internal use, so I just made the dbs manually and edited the files by hand).
Now the time has come for my first commercial project (to be sold in bulk that is) and I need to develop an installation script. So I was wondering how would you guys advise me to make one.
I want it to be as simple as possible, so I was thinking about something in these lines:
-Ask user for ftp data for auto chmoding, if no data is given, tell the user which files to chmod. - not a lot of questions here
-Ask user for db data - should I make it so it creates the DB and tables automaticly? Or force the user to create the db him self (seeing many hosting companies force people to create the dbs manually, not giving permissions to the user created usernames to do that)
-Ask user for super admin user data. - not many questions here.
Also, how would I go into creating the tables? My only table creation experience is with phpMyAdmin. Should I just export the structure of my current tables and use that?
Looking forward to comments and suggestions.
Thanks in advance,
Posted 12 August 2006 - 03:15 AM
http://blazonry.com/...nksdb/start.php is also a link that describes to you how to deal with mysql using php. The tutorial is amongst the first ones which i read online. try it out.
Posted 12 August 2006 - 03:26 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users