Hey guys, I want to make a page to edit the config.php file. Basically think vBull’s install page, but to edit my config.php file.
Config.php
[php]
$hostname="Host "; //leave as is(most cases)
$user=“Username”; //change to your username
$pass=“Password”; //change to your pass
$db=“Database”; //change to your db name
$main_content=“Welcome to your new portal. You can edit this page through your admin pannel.”;
$admin_username=“Admin Username”; //change to your admin username
$admin_pass=“Admin Pass”; //change to your admin password
[/php]
Sorry, I’m trying to figure out how to word it.
Without using a database (I want to be able to install this portal on any website I make without having to go in and edit the config file with an editor), how can I make a page that will edit this file for me based on what I type into the form? Like Database Name: <input type=text name=db>
will write the value for $db. When the config file is called, it’s going to connect to the db and whatnot. The last two lines of the code set the username and password for the adminCP. I saw vBulletin’s install page and got inspired to try to make a page like that, but it failed miserably. Any help would be greatly appreciated!