Jump to content

simple and quick


pram

Recommended Posts

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

<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.