Arborer,
This is run on Windows, so extensions are .dll and not .so as in Linux. Also, I´m trying to connect to MS SQL Server and not MySQL, so the extension that need to be loaded is php_mssql.dll and not php_mysql.dll nor php_mysqli.dll.
I have TWO IDENTICAL php.ini files, one in c:\appserv\php5 and other in c:\windows. Both have enabled the php_mssql.dll extension.
When I run the testdb.php file from command prompt using php.exe, the php.ini in c:\appserv\php5 is loaded and mssql.dll´s are loaded also. But if I run testdb.php from inside a browser, the php.ini into c:\windows is used instead, and mssql.dll´s are not loaded.
I think the problem could be the link between PHP and Apache.
Any other suggestion, everyone?
Thanks
Main Topics
Browse All Topics





by: arober11Posted on 2009-09-05 at 18:45:42ID: 25268505
As you only have the one .ini file, you don't have a "--with-config-file-scan-d ir=c:\xxxx xxx" can you have a look to see what extensions are loaded in the C:\Windows\php.ini
You should see lines similar to the following, make sure the mysql and odbc entries are uncommented:
; comment out next line to disable mysql extension in php
extension=mysql.so
; comment out next line to disable mysqli extension in php
extension=mysqli.so
; comment out next line to disable odbc extension in php
extension=odbc.so