Nice one guys real helpful!!!
firstly of course it can be done. secondly it does involve knowledge of PHP and the server area as well as a little common sense such as checking out privileges and knowing the server version. I often find it easiest to stick to local or intranet servers that I provide.
Issues include:-
- PHP Version Detection (I just check the PHP version is greater than 4.3.x)
- Server Detection (Some Apache stuff is obviously not compatible with previous versions of apache or IIS not to mention other servers)
- External Wrapper / claass / extension / application detection)
I am doing the me thing at the moment but not jut for my scripts for mediawiki and some other scripts, just install your script do a mysql dump of the created database and have php load it into a variable to query through mysql query interface. you can also str_replace pseudo variables for dynamic file names, database and table prefixes.
Then all you need to worry about is the files. I usually link my global config.php flle to another called portavar.php then just write that file and have php copy the rest (or use exec it really doesn't bother me)
Then your all done no need for any real oop in this ad with an array you could switch to different cases for script specifics.
Hope this helps, private message me for more info but dont expect me to spoon feed or write the code for you