Sometimes it\'s a good idea to define the constants, it makes it more secure.
<?
//set the variables as required
define (DBHOST, \'mysite.com\');
define (DBUSER, \'username\');
define (DBPASS, \'password\');
define (DBNAME, \'database_name\');
//do not edit this, it connects the script
mysql_connect (DBHOST, DBUSER, DBPASS);
mysql_select_db (DBNAME) OR die (mysql_error ());
?>
Most certainly. To use it how it is, just take the third line:
$err_h = array (\'status\' => \'DEVELOPMENT\', \'email\' => \'CaptSushekECF@aol.com\', \'log\' => \'error_log.html\'); // Set status to either \"DEVELOPMENT\" or \"LIVE\", any other variables will not work properly; set email to the email address errors will be logged to during LIVE mode; set log to the location errors will be logged.
$err_h is an array that sets up how it works.