php 获取linux所有目录

opendir,is_dir,scandir,file_exists,redaddir等想要获取文件目录的函数,在windows可以随意用,在linux中需要修改配置文件才行。

vi /usr/local/nginx/conf/fastcgi.conf

fastcgi_param PHP_ADMIN_VALUE"open_basedir=$document_root/:/tmp/:/proc/";
改成:

fastcgi_param PHP_ADMIN_VALUE "open_basedir=NULL"; 

lnmp restart

猜你喜欢

转载自blog.csdn.net/lorraine_40t/article/details/85062974