I wrote a simple little class last night that does something like this. It'll parse php.ini style configuration files and turn the "variable=value" lines into form elements and make the comments into regular HTML lines and throws it all into table rows. Then, when the form is submitted, you simply loop through $_POST and match the $key of $_POST in the text of the file and rewrite the new value submitted after it. Two methods and a couple preg_replace() functions is all it is. I don't know what the PEAR installer does, but this is a simple solution.
---John Holmes... ----- Original Message ----- From: "Stephen" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 7:50 AM Subject: [PHP] Has This Been Done? Just a question but has something like ever been done? A PHP script that would create an installation form for any other PHP script developed by the user. It would create the install form and make the configuration file. If it has, where can I find it? Thanks, Stephen Craton http://www.melchior.us "What's the point in appearance if your true love, doesn't care about it?" -- http://www.melchior.us ---------------------------------------------------------------------------- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php