转载一个测试open_basedir的PHP代码。 qtwrk 7 年前 自己记录一下, 免得以后又要找 <?php ini_set('open_basedir', getcwd()); readfile('/etc/passwd');