0

I have a PHP website using SQL Server as the database. I want to put it on the windows server. The server using IIS 7. I have a problem to run my website, when I try to login I always get an error :

PDOException in Connector.php line 55: could not find driver

I did put the pdo sql driver in my php ext. and I already registered that in php.ini but I still got that error.
enter image description here

And in my phpinfo() I could not find the "sqlsrv" words at all. Do you know why and how to fix this?

1 Answer 1

1

If you are using IIS for PHP, you should load dlls with nts (non-thread safe) version.

php_sqlsrv_56_nts.dll
php_pdo_sqlsrv_56_nts.dll
Sign up to request clarification or add additional context in comments.

2 Comments

so i have to instal php 56 non thread safe first then put the nts dlls?
@hendraspt As far as I understand from your explanation on the question, you don't have to do anything with php installation. Just put nts dlls instead of ts dlls (and replace in the ini file). Note: if you have 64 bit php, those 5.6 version dlls won't work, too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.