在网上查了好多资料说的都不是很清楚,参考http://www.jz123.cn/text/1522864.html主要是这里的php.ini的存放地址多的不是很清楚,他说放在windows/下面,放两个不就覆盖了。还请知道的说下具体的配置,主要是在iis下

解决方案 »

  1.   

    php.ini是随Web服务器启动时载入的,php.ini搜索位置如下:
    ==============================================================
    http://www.php.net/manual/en/configuration.file.phpphp.ini is searched in these locations (in order): ■SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment variable in THTTPD) ■The PHPRC environment variable. Before PHP 5.2.0 this was checked after the registry key mentioned below. ■As of PHP 5.2.0, the location of the php.ini file can be set for different versions of PHP. The following registry keys are examined in order: [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z], [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y] and [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x], where x, y and z mean the PHP major, minor and release versions. If there is a value for IniFilePath in these keys, then the first one found will be used as the location of the php.ini (Windows only). ■[HKEY_LOCAL_MACHINE\SOFTWARE\PHP], value of IniFilePath (Windows only). ■Current working directory (except CLI) ■The web server's directory (for SAPI modules), or directory of PHP (otherwise in Windows) ■Windows directory (C:\windows or C:\winnt) (for Windows), or --with-config-file-path compile time option 
    =========================================================================
    在IIS下面应该只能载入一个php.ini
      

  2.   

    当然,你可以使用Apache作为另一个Web服务器载入不同的php.ini
      

  3.   

    服务器东西杂,所以Apache不考虑,我也清楚Apache比iis好弄
      

  4.   

    微软发布 PHP Manager for IIS 7 ,这个是前几天看的新闻。  再也不用为在IIS上配置PHP而烦恼了,微软刚刚发布了面向IIS的PHP管理器版本1.0,x86和x64系统均可使用,用途如下:  *关联PHP和IIS  *并列运行多个PHP版本在同一台服务器上,甚至在同一网站  *检查PHP运行时配置和环境(的phpinfo()函数的输出)  *配置各种PHP设置  *启用或禁用PHP扩展  *远程管理php.ini PHP配置文件
      

  5.   

    4楼的 这个是iis7专有的还是单另有一个这样的东西??没看明白