'loading sqlsrv driver in php.ini

i got php5.4.4 and i've downloaded sqlsrv driver for working with microsoft SQL putted the dll in the ext folder of php and in the php.ini

;;;;;;;;;;;;;;;;;;;;;;;;
; Microsoft SQL Server ;
;;;;;;;;;;;;;;;;;;;;;;;;

extension=php_sqlsrv_54_nts.dll
sqlsrv.LogSubsystems=-1
sqlsrv.LogSeverity=-1
sqlsev.WarningsReturnAsErrors=0

but when loading

phpinfo()

the extension doesn't show up .

am i doing something wrong here?!

thanks in advance.



Solution 1:[1]

extension=php_sqlsrv_54_nts.dll should be in [ExtensionList] section, the rest of the parameters should be in [sqlsrv]:

(...)

[ExtensionList]
(...)
extension=php_sqlsrv_54_nts.dll

(...)

[sqlsrv]
sqlsrv.LogSubsystems=-1
sqlsrv.LogSeverity=-1
sqlsev.WarningsReturnAsErrors=0

(...)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 zborecque