Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    May 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can't connect to external Server

    Hello, I'm building some forms in PHP and I'm deploying them in Server #1, the MSSQL DB is in Server #2, I've written this code to access the DB

    <?PHP
    $username ="yyy";
    $password = "xxx";
    $database = "fff";
    $server = "111.222.333.444,1433";
    $connection = mssql_connect($server, $username, $password);
    echo "Connected!3";
    if (!$connection) {
    die('Not connected : ' . mssql_get_last_message());
    }
    echo "Connected!5";
    if ($connection) {
    echo "Connected!1";
    }
    echo "Connected!2";
    ?>

    The result is a blank page, after the $connection, nothing shows, not even the echos.

    The Administrator told me that the info that he provided, "thinks" it's correct.

    How can I check if the info that he provided is correct?

    I've access to both Servers.

    The problem is really in the info provided or it's another problem?

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,921
    Thanks
    63
    Thanked 1,115 Times in 1,037 Posts

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •