发布网友 发布时间:2022-04-06 05:04
共2个回答
懂视网 时间:2022-04-06 09:26
php开启mysqli扩展的方法:首先打开php.ini配置文件;然后找到【extension=php_mysqli.dll】,并取消注释;最后找到【extension_dir】,设置ext路径即可。
具体步骤:
(推荐教程:php图文教程)
首先打开php.ini配置文件,搜索php_mysqli.dll;
然后设置extension_dir指令
; Windows Extensions ; Note that ODBC support is built in, so no dll is needed for it. ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+) ; extension folders as well as the separate PECL DLL download (PHP 5+). ; Be sure to appropriately set the extension_dir directive. ;一定要适当地设置extension_dir指令。
(视频教程推荐:php视频教程)
最后在php.ini里面搜索extension_dir;
extension_dir = “G:/web/php7.1/ext”
检查G:/web/php7.1/ext安装路径是否存在php_mysqli.dll(如果不存在应该是PHP安装包损坏,请重新下载)。
完成以上步骤就开启成功了。
热心网友 时间:2022-04-06 06:34
在apache 的httpd.conf找到
#LoadMole vhost_alias_mole moles/mod_vhost_alias.so
#LoadMole ssl_mole moles/mod_ssl.so
添加如下内容
LoadMole php5_mole E:/install/php/php5apache2_2.dll
PHPIniDir "E:/install/php"
#是mysql扩展
LoadFile E:/install/php/libmysql.dll