0
I have the following PHP, I am using WAMP, and as in the image below, dll’s are active:
<?php
$server = "dblinx";
$connection = array("Database"=>"Linx", "UID"=>"root","PWD"=>"root");
$conn = sqlsrv_connect($server, $connection);
if ($conn) {
echo "Connected!";
} else {
echo "Connection failed<br>";
die( print_r(sqlsrv_errors(),true));
}
?>
But it always comes up when I try to open the page:
Someone can help me?
I’ve already added Extensions in PHP.ini
Trying to connect to SQL Server?
– Roberto Giffone
You are probably missing the extensions in your php.ini that is on the same dlls path. I’ll enter it in the answer to see if it solves.
– Roberto Giffone
The drivers
pdo
would only be necessary if you were using PDO. A possible problem, is to be using 32bits and not 64bits (xampp or sql server?, until I was in doubt now), so the error occurs.– rbz