Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file_name = "config.php";
- $file_handle = fopen($file_name, 'w') or die("Can't open file");
- $text = '$DBHOST = "'.$_POST['DBHOST']'";';
- $text .= '$DBUSER = "'.$_POST['DBUSER']'";';
- $text .= '$DBPASS = "'.$_POST['DBPASS']'";';
- $text .= 'mysql_connect($DBHOST,$DBUSER,$DBPASS);';
- fwrite($file_handle, $text);
- fclose($file_handle);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement