php open_basedir的使用与性能分析

php open_basedir的使用与性能分析

使用方法
<pre>
/*限制打开的目录*/
ini_set('open_basedir', __DIR__.'/');
</pre>
如果 打开不是这个目录 就会报错
failed to open stream: Operation not permitted in F:phpStudyWWWmircowebmircowebwwwrootPublicopendirtest.php on line 8

经过测试 open_basedir使用后 会影响I/O性能导致系统执行变慢 所以能不用就不要用了。。。

原文地址:https://www.cnblogs.com/newmiracle/p/11864758.html