<?php if(!file_exists("conf.php")) { echo ">>> NOTE:\n>>> The file conf.php must be edited specifically for this system\n"; echo ">>> The default file has been created for you.\n>>> Please edit the file to match your system\n"; $data = "<?php\n"; $data .= "\n".'//$path_website = "/var/www/html"'."\n\n"; $data .= "?>"; file_put_contents( "conf.php", $data); exit; } include "conf.php"; if(!isset($path_website)){ echo ">>> ERROR:\n"; echo "The path to the website must be set. Please edit/correct conf.php\n"; exit; } ?>