iEthan Posted October 9, 2008 Share Posted October 9, 2008 I'm making a content management system, and all I need is an installer page.Now, I need a form that would edit the fields in lib/php/DB/info.php: <?php$db_host='';$db_database='';$db_username='';$db_password='';?> How would I create a form that could do that?~iE Link to comment Share on other sites More sharing options...
justsomeguy Posted October 9, 2008 Share Posted October 9, 2008 The form is just a regular form, the PHP page that processes the form can use file_put_contents to write whatever information you want to that file. You'll need to have the script write the PHP code to that file. Link to comment Share on other sites More sharing options...
iEthan Posted October 9, 2008 Author Share Posted October 9, 2008 And what is an example of this command. I've never heard of it.~iE Link to comment Share on other sites More sharing options...
justsomeguy Posted October 9, 2008 Share Posted October 9, 2008 Check the reference:http://www.php.net/manual/en/function.file-put-contents.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.