osx - Connect to SQL Server using PHP in MacOs Sierra : Could not find driver -


i have app written in php connects mysql. 1 of customers want use sql server instead. in past had big headache make pdo connect sql server in windows 2008 machine, i'm on mac sierra. there 'easy' way configure connection, without having download sources, compile , on ?

by using code below :

$dbh = new pdo("sqlsrv:server=dbserver.domein.com;database=testdb", "user@dbserver", "password"); 

i 'could not find driver' error.

thanks !

making connection pdo sql serve shouldn't problem.

$dbh = new pdo("sqlsrv:server=dbserver.domein.com;database=testdb", "user@dbserver", "password"); 

however should check query's db server specific query's. while both sql there still differences between two.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -