Re: Has This Been Done?
| From: | 1LT John W. Holmes | Date: | Fri, 24 Jan 2003 16:01:37 +0000 |
| Subject: | Re: Has This Been Done? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133001@lists.php.net to get a copy of this message | ||
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" <webmaster@melchior.us>
To: "PHP List" <php-general@lists.php.net>
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