The php that run on the webserver and the CLI version is not using the same php.ini file. If I do a command php --ini
, it show this
Configuration File (php.ini) Path: C:Windows
Loaded Configuration File: C:wampinphpphp5.3.8php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
while my web version uses the php.ini in C:wampinapacheApache2.2.21inphp.ini
. This is probably very common for people using wamp.
How do I change the Loaded Configuration File to read from C:wampinapacheApache2.2.21inphp.ini
so I don't have to maintain 2 different php.ini versions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…