|
IIS下 PHP FastCgi的问题 require路径缓存的问题 require系列函数包含相对路径相同
- /*IIS下 PHP FastCgi的问题
- require路径缓存的问题
- require系列函数包含相对路径相同
- 比如:*/
-
- /root/web/config/config.php
- /root/web/admin/config/config.php
- config.php的代码不相同
- /*如下: 依次执行下述代码*/
- /root/web目录下php程序代码 : require('config/config.php'); ///root/web/config/config.php
- /root/web/admin目录下php程序代码 : require('config/config.php'); ///root/web/admin/config/config.php
- /root/web目录下php程序代码 : require('config/config.php'); ///root/web/admin/config/config.php
- 第二个config.php会将第一个config.php的缓存覆盖掉,第三个执行时使用的是/root/web/admin/config/config.php。
复制代码
|
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn