开发者

How to enable MySQLi extension in htaccess

How to enable MySQLi extension for PHP in 开发者_如何学运维htaccess? Is it even possible to enable PHP extensions through htaccess file?


The extension= directive is only valid in the central php.ini, it cannot be set from within .htaccess files.

At best you could load it manually in your PHP script:

<?php
   dl("mysqli.so");

Only works until PHP 5.2


You don't.

Mysqli should be installed as a PHP-module and loaded through php.ini.

Assuming you use a debian-related Linux distribution, this can be done by issuing apt-get install php5-mysqli.

If this is not an option, please read the PHP documentation on this module and follow the steps described there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜