$host = $_POST["host"];
$dbusername = $_POST["dbusername"];
$dbpasssord = $_POST["dbpasssord"];
$dbname = $_POST["dbname"];
$yazilacaklar=" /* MySQL settings */
define( 'DB_NAME', '".$dbname."' );
define( 'DB_USER', '".$dbusername."' );
define( 'DB_PASSWORD', '".$dbpasssord."' );
define( 'DB_HOST', '".$host."' );
";
$dosyam = '/config.php';
$handle = fopen($dosyam, 'w') or die('Config File Okunamadı: '.$dosyam);
fwrite($handle, $data);
?>