Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Config = "../config/SQL.cfg";
- $fh = fopen($Config, 'r');
- if(filesize($Config) < 3) die("Configuration file was unable to be read, Please redo the installation. Make sure you /install/config folder is CHMod 777. ERROR ID 3-0.");
- $SQL_Host = fgets($fh);
- $SQL_Username = fgets($fh);
- $SQL_Password = fgets($fh);
- $SQL_Database = fgets($fh);
- fclose($fh);
- $Connection = mysql_connect($SQL_Host, $SQL_Userame, $SQL_Password) or die("An error has occured. EasyP was unable to connect to your database. ERROR ID 1-2");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement