close

因為工作關係,所以這陣子必須和微軟系統周旋,搞得我一個頭兩個大 =_=

先是 Win2003 + Apache + MSSQL 的問題,一直都搞不定 :~

後來決定用在 XP 上,但是原來跑的很順的 XP + Apache + MSSQL 也出了一個問題 !

Unknown():Unable to load dynamic library 'c:\php\extension\php-mssql.dll'-找不到指定的模組.

這問題以前從沒出現過,而且安裝還是同一個程式,所以覺得實在奇怪。
但秉著"電腦這玩意決定沒有靈異現象"的信念,最後終於被我查出來了...

普級的解決方式:
1.檢查 extension_dir = "c:/php/extensions/"
2.設定系統環境變數
3.將 dll copy 到 %windir%\system32 下

當以上動作都作過時,還是會出現錯誤,以下列表可以幫助我們回答這個問題。
因為 PHP 的 dll 檔依賴某些 dll,所以必須將相關的 dll 給 copy 進去,而 mssql 就是少了 ntwdblib.dll 這個檔。

我發現某些電腦有某些沒有,而有 ntwdblib.dll 這個檔案的皆安裝了 mssql,所以即時你只是想使用 mssql function 連到外部的 mssql,你也必須要有 ntwdblib.dll。


php_curl.dll CURL, Client URL library functions Requires: libeay32.dll, ssleay32.dll (bundled)
php_domxml.dll DOM XML functions PHP <= 4.2.0 requires: libxml2.dll
(bundled) PHP >= 4.3.0 requires: iconv.dll (bundled)
php_fdf.dll FDF: Forms Data Format functions. Requires: fdftk.dll
gnu_gettext.dll (bundled), PHP >= 4.2.3 requires libintl-1.dll,
php_iconv.dll ICONV characterset conversion Requires: iconv-1.3.dll
php_ingres.dll Ingres II functions Requires: Ingres II libraries
php_interbase.dll InterBase functions Requires: gds32.dll (bundled)
php_java.dll Java functions PHP <= 4.0.6 requires: jvm.dll (bundled)
php_ldap.dll LDAP functions PHP <= 4.2.0 requires libsasl.dll(bundled),
PHP >= 4.3.0 requires libeay32.dll,ssleay32.dll (bundled)
php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll
php_mhash.dll Mhash functions PHP >= 4.3.0 requires: libmhash.dll (bundled)
php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll
php_mhash.dll Mhash functions PHP >= 4.3.0 requires: libmhash.dll (bundled)
php_msql.dll mSQL functions Requires: msql.dll (bundled)
php_mssql.dll MSSQL functions Requires: ntwdblib.dll (bundled)
php_mysql.dll MySQL functions PHP >= 5.0.0, requires libmysql.dll (bundled)
php_mysqli.dll MySQLi functions PHP >= 5.0.0, requires libmysqli.dll (bundled)
php_oci8.dll Oracle 8 functions Requires: Oracle 8.1+ client libraries
php_openssl.dll OpenSSL functions Requires: libeay32.dll (bundled)
php_oracle.dll Oracle functions Requires: Oracle 7 client libraries
php_sybase_ct.dll Sybase functions Requires: Sybase client libraries
php_xmlrpc.dll XML-RPC functions PHP >= 4.2.1 requires: iconv.dll (bundled)
php_xslt.dll XSLT functions PHP <= 4.2.0 requires sablot.dll, expat.dll (bundled).

PHP >= 4.2.1 requires sablot.dll, expat.dll, iconv.dll (bundled).

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 基因 的頭像
    基因

    老骨頭先生

    基因 發表在 痞客邦 留言(0) 人氣()