PHP Connect to MSSQL Issue 1 Part2 – PHP Startup: Unable to load dynamic Library ‘\xampp\php\ext\php_mssql.dll’ – The specified module could not be found PHP 連接MSSQL Database 問題

昨天寫了當大家遇到
Fatal error: Call to undefined function mssql_connect()
應該怎樣做..
有些朋友可能是因為XAMPP 版本不同的關係.所以仍然還是出現問題
PHP Startup: Unable to load dynamic Library ‘\xampp\php\ext\php_mssql.dll’ – The specified module could not be found

如果你的Server 上在PHP 資料夾中沒有php_mssql.dll
路徑 如: root directory\php\ext 資料夾中..沒有php_mssql.dll和你的Apache便會出現以下的錯誤信息…
PHP Startup: Unable to load dynamic Library ‘\xampp\php\ext\php_mssql.dll’ – The specified module could not be found

解決方法:
你可以到以下URL 下載 php_mssql.dll

https://skydrive.live.com/?cid=66398506b8d4b8bf&sc=documents&uc=2&id=66398506B8D4B8BF%21125#
之後打已下載 的php_mssql.dll 檔案放進php資料夾裡面的ext資料夾入面便可
E.g, H:\xampp\php\ext\

之後停用Apache/IIS Web Server之後重新啟動便可以了

Hope you find it useful

2 thoughts on “PHP Connect to MSSQL Issue 1 Part2 – PHP Startup: Unable to load dynamic Library ‘\xampp\php\ext\php_mssql.dll’ – The specified module could not be found PHP 連接MSSQL Database 問題

  1. Pingback: PHP Connect to MSSQL Issue 1 – Fatal error: Call to undefined function mssql_connect() – PHP 連接MSSQL Database | Share ChiWai/Share 智慧/智慧分享 – 技術分享/Tech Blog

  2. JetonUk

    I downloaded two .dll files and I put it to their folders. The apache start ok.
    Now I have another problem, when I try to execute Stored Procedures from PHP I have an error: “mssql_execute() [function.mssql-execute]: stored procedure execution failed in C:\xampp\htdocs\ETC\member.php on line 79”

    I am using Xampp 1.7.4 and SQL Server 2008

    Can you help me please?

    With respect
    JetonUk

    Reply

Leave a Reply