IT log

moral & concision is my dream.

Archive for March, 2007

phpinidir使用更改php.ini默认路径

phpinidir使用

2007-03-12 22:55

# configure the path to php.ini
PHPIniDir "C:/php"

PhpIniDir是PHP的初始化文件php.ini的路径。许多朋友将php.ini放入windows目录下,但是这不是一种好的方式,因为系统搜寻php.ini的顺序是:

       
(1) PhpIniDir;       
(2) 注册表键值:HKEY_LOCAL_MACHINE->SOFTWARE->PHP->IniFilePath;       
(3) 环境变量%PHPRC%;       
(4) PHP5的根目录(For CLI),或者WWW的根目录(For SAPI moudles);       
(5) Windows目录(C:\windows);          
很明显,在hpptd.conf中设置PhpIniDir是最好的办法。(PhpIniDir的设置跟PHP的版本有关系)

posted by Leon Tsang in Library - Knowledge and Power and have No Comments