在 LAMP 堆栈上我可以使用:
> php_value auto_prepend_file bootstrap.php
在 .htaccess 中引导一系列我想在处理任何页面之前执行的命令。
是否可以在 IIS 6.0 中执行相同的操作?
更新:
这不是最漂亮的解决方案,但由于我在这台服务器上有一个站点,我只是在 php.ini 中添加了 auto_prepend_file 设置并重新启动了 IIS
你可以使用注册表设置每个目录的配置。或者.user.ini文件(自 php 5.3 起):
Since PHP 5.3.0, PHP includes support for .htaccess-style INI files on a per-directory basis. These files are processed only by the CGI/FastCGI SAPI. This functionality obsoletes the PECL htscanner extension. If you are using Apache, use .htaccess files for the same effect.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)