"; debug_msg(nl2br(htmlentities($dbconfig_contents, ENT_COMPAT, LANG_CHARSET)), 5); // Open the file for writing if (!$file_handle = @fopen($dbconfig_file,'wb')) { // Failed to open the file? return(1); } if (fwrite($file_handle, $dbconfig_contents) === FALSE) { fclose($file_handle); return(2); } // Close the file fclose($file_handle); // File written readable? if (!is_readable($dbconfig_file)) { return(4); } return(0); } ?>