Problem with configuration.php and yahoo web host

Hi, I have a new web site. Work 100% in localhost and another online web host. However, when I try to upload for my yahoo web host.

I try to upload a new website and I have problems with configuration.php. That file is where I configure the access to database and server host. Please could you confirm what is wrong?

$servidor = "98.136.???????"; this is my IP where I can get it? I think the ip that I use is wrong

$user = "user2"; this is the user that I create in my small business account
$pwd = "password";
$dbname = "site";

and then I use

$conn = mysql_connect($servidor, $user, $pwd);
if (!$conn) {
    die('Não foi possível conectar: ' . mysql_error());
if (!mysql_select_db($dbname, $conn)) {
    die('Could not select BD: ' . mysql_error());

0 Replies

Recent Posts

in PHP Development