Page 1 of 1
PHP installer
Posted: Thu Jan 08, 2009 8:50 am
by alex.barylski
Something like wizards for Windows.
Ideally I'd like to create an installer which knew how to setup SQL tables, create all application files, set permissions and last but not least, delete the installer file.
Does anyone know of a project like this?
Re: PHP installer
Posted: Thu Jan 08, 2009 11:01 am
by josh
In executable form or what? Generally installers are application specifc, theyre not hard to make just look at any opensource software. You can create an sql file and just explode(';') on it, and send each query to mysql_query, you can chmod files with chmod() and chown()
Re: PHP installer
Posted: Thu Jan 08, 2009 5:42 pm
by alex.barylski
Basically I was hoping to create an installer by basically...
1. Marking config files/SQL files with placeholders
2. Having the installer package all files/folders/permissions for a given source tree
That way the installer would generate the FORM's and steps for installation and the FORM values would replace the placeholders, the installer would then iterate over SQL queries to create the tables and eventually copy files/folders, set permissions, etc.
Re: PHP installer
Posted: Thu Jan 08, 2009 11:03 pm
by Chris Corbyn
Probably check out Phing. It's basically a Make tool for PHP.
You could use Ant if you're familiar with that too. I tend to use Ant for quite a lot of automation tasks.
Re: PHP installer
Posted: Fri Jan 09, 2009 1:30 am
by alex.barylski
Phing...that was the friggen name I was lookin' thank you.
I'm not sure it's going to meet my requirements but that is what I was most interested in finding, thanks again.
