![](/img/trans.png)
[英]Apache 2.2 phpinfo() Configuration File (php.ini) Path doesn't match httpd.conf
[英]After I configure my php.ini file to load the MySQL module, it doesn't appear in phpinfo() and I can't call to MySQL functions
抱歉,如果這是一個非常愚蠢的問題。 我在Google上搜索了很多,但沒有任何反應
我的php.ini文件中有這個:
extension_dir="C:\Program Files\PHP\ext"
enable_dl = on
extension=php_mysql.dll
當我調用phpinfo()函數時,它說沒有任何已加載的模塊。
我正在Windows操作系統中使用最新版本的apache,php和MySQL。
另外,我曾經使用過WAMP服務器,但我更喜歡單獨存放東西,我想學習如何做
提前致謝
您還需要在php.ini中啟用mysql擴展本身。 例如,如果要使用mysqli,則需要將其添加到php.ini文件中:
extension=php_mysqli.dll
還請確保您在ext目錄中具有此dll文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.