Home Backend Development PHP Tutorial libmysql.dll与php.ini是否真的要拷贝到c:windows目录下呢_PHP

libmysql.dll与php.ini是否真的要拷贝到c:windows目录下呢_PHP

Jun 01, 2016 pm 12:19 PM
php.ini

是否一定要这样做呢?很多网上的帖子都是人云亦云,别人说要,他也说要。 其实用的,每次重装系统,都这样拷一遍,折腾一遍,太辛苦了。 用过APMServ这个傻瓜式安装包的朋友可能会发觉,这个东西,在第一次安装后,以后重装系统也不会重新安装的,只要运行一下主程序,就可以运行WAMP的了,不用折腾一遍的。

可能有人会认为它把libmysql.dll拷贝到c:\windows目录下了,其实不是的,不信去找一找。 既然APMServ可以做到,那么我们也可以做得,比对了APMServ和我们安装的WAMP,找到奥妙就在apache的httpd.conf配置文件。 在httpd.conf加载PHP时,大家都知道是添加这句:
LoadModule php5_module E:\server\php528\php5apache2_2.dll 可能有些朋友也知道,添加这句后,就不用把php.ini拷贝到系统目录:
PHPIniDir E:\server\php528\php.ini
现在我说说不用把libmysql.dll拷到系统目录的办法,就是在加载php5_module前,添加这句:
LoadFile "E:\server\php528\libmysql.dll"

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to turn off cache in php.ini How to turn off cache in php.ini Mar 15, 2021 am 09:35 AM

How to turn off cache in php.ini

Let's talk about how to modify the php.ini configuration file Let's talk about how to modify the php.ini configuration file Mar 28, 2023 pm 05:34 PM

Let's talk about how to modify the php.ini configuration file

[Compilation and Summary] Common PHP.ini prompt errors and solutions [Compilation and Summary] Common PHP.ini prompt errors and solutions Mar 20, 2023 pm 04:56 PM

[Compilation and Summary] Common PHP.ini prompt errors and solutions

How to change time zone in php.ini file How to change time zone in php.ini file Mar 22, 2023 pm 03:22 PM

How to change time zone in php.ini file

How to solve the problem that linux php.ini does not take effect How to solve the problem that linux php.ini does not take effect May 13, 2023 am 09:10 AM

How to solve the problem that linux php.ini does not take effect

How to solve the problem that there is no mysql.all in php7 php.ini How to solve the problem that there is no mysql.all in php7 php.ini May 28, 2023 am 11:59 AM

How to solve the problem that there is no mysql.all in php7 php.ini

How to modify the php.ini file in wamp How to modify the php.ini file in wamp Mar 20, 2023 pm 03:33 PM

How to modify the php.ini file in wamp

What should I do if changing php.ini in php7 does not work? What should I do if changing php.ini in php7 does not work? Nov 07, 2022 am 09:54 AM

What should I do if changing php.ini in php7 does not work?

See all articles