pram Posted March 20, 2008 Share Posted March 20, 2008 back story: web site built using PHP and MYSQL. built in "staging" directory for testing. i tried to migrate directory over to "live" server and broke something. i literally moved the entire root folder of html> over to live root folder thinking it would be fine. not fine. something broke. i get this error now; Parse error: syntax error, unexpected T_VARIABLE in /mnt/gs01/herd02/31283/domains/staging.domain-custom.com/html/Gallery/admin/includes/php/connection.php on line 4 i am not a programmer, but suspect some sort of permissions dialog got lost. i really need help! help! Link to comment https://forums.phpfreaks.com/topic/97140-simple-and-quick/ Share on other sites More sharing options...
Orio Posted March 20, 2008 Share Posted March 20, 2008 Can you show the code of connection.php? Just censor the passwords and users. Orio. Link to comment https://forums.phpfreaks.com/topic/97140-simple-and-quick/#findComment-497039 Share on other sites More sharing options...
pram Posted March 20, 2008 Author Share Posted March 20, 2008 <?php /* Localhost */ $hostName = "internal-db.xxxxx.gridserver.com"; // Machine on which MySQL Database is running $userName = "xxxxxx"; // Database User Login $password = "xxxxx"; // Database User Password $database = "xxxxx_domain_custom"; // Database name $link = mysql_pconnect($hostName, $userName, $password) or die("Could not connect : " . mysql_error()); mysql_select_db($database, $link); ?> Link to comment https://forums.phpfreaks.com/topic/97140-simple-and-quick/#findComment-497056 Share on other sites More sharing options...
pram Posted March 20, 2008 Author Share Posted March 20, 2008 FYI: i didn't change any of that data, i simply migrated the entire directory Link to comment https://forums.phpfreaks.com/topic/97140-simple-and-quick/#findComment-497058 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.