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