Can't load the php sqlsrv.dll for some reason


running ms2k3 webserver iis , php 5.2.5

my php.ini in windows folder containing among other things these 2 entries:

extension_dir ="c:\php\ext"
extension=php_sqlsrv.dll

and file php.sqlsrv.dll located in php\ext directory

i've restarted iis server php running , working fine. there else still check ?

code snippet

if (!extension_loaded('sqlsrv')) {
    echo("not loaded");
}



produces: not loaded.


edit:
dug logs:
the description event id ( 2 ) in source ( php-5.2.5 ) cannot found. local computer may not have necessary registry information or message dll files display messages remote computer. may able use /auxsource= flag retrieve description; see , support details. following information part of event: php[2144]; php warning:  php startup: unable load dynamic library 'c:\php\ext\php_sqlsrv.dll' - specified module not found.
 in unknown on line 0.


nevermind didn't realize php installation using thread safe core dll should use extension=php_sqlsrv_ts.dll. anyway , running now.


SQL Server  >  SQL Server Data Access



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........