davidcook Posted December 31, 2008 Share Posted December 31, 2008 Go Daddy asked me to change the server name and I copied and pasted and this is the error I get: Parse error: parse error, unexpected T_VARIABLE in /home/content/c/o/p/copycall/html/includes/database.php on line 1 And here is the spot where GoDaddy says is the problem: <?php/** * *********************************************************************************************** * Filename: database.php * Module: - * Subcategory: - * Description: Website Configuration File * All constants are defined here * ************************************************************************************************/$db_host="copycallmysql.db.2028640.hostedresource.com ";$db_name="copycallmysql";$db_user="copycallmysql";$db_pass="Nixc09yca11";$tbl_prefix="cc";/*$db_host="localhost";$db_name="demoblitz_prop";$db_user="root";$db_pass="";$tbl_prefix="ps";*/include_once('conf.mysql.php');$post_vars = $_POST;$get_vars = $_GET;$file_vars = $_FILES; $com_obj = new dbclass($db_host,$db_name,$db_user,$db_pass,$tbl_prefix);//require_once('conf.mysql.php');//Database Parameters/*define('DB_TYPE', 'MySQL'); define('DB_URL', 'localhost');define('DB_USERNAME', 'shyamala'); // Database Userdefine('DB_PASSWORD', 'shyamala123'); // Database Passworddefine('DB_NAME', 'common'); // Database Name$dr_host='localhost';$dr_user='shyamala';$dr_pass='shyamala123';$dr_db='common';*/?> All help will be greatly appreciated! Dave Quote Link to comment https://forums.phpfreaks.com/topic/139041-php-parse-error/ Share on other sites More sharing options...
CodeMama Posted December 31, 2008 Share Posted December 31, 2008 Everytime I have gotten one of those errors it has been a missing ; semi colon or a } curly bracket Hope it helps... Passing a bottle of Aspirin t. Quote Link to comment https://forums.phpfreaks.com/topic/139041-php-parse-error/#findComment-727210 Share on other sites More sharing options...
premiso Posted December 31, 2008 Share Posted December 31, 2008 Maybe if you would space (put each on a different line) out your variable declarations you would see the problem 10000000 times easier. Also please use the [ code] and [ /code] (remove initial space) tags to surround code. Quote Link to comment https://forums.phpfreaks.com/topic/139041-php-parse-error/#findComment-727222 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.