开发者

php file_get_contents

开发者 https://www.devze.com 2023-03-19 03:42 出处:网络
I have 2 domains on the same server and I am trying to access a file on one that is perms 77开发者_如何学编程7.

I have 2 domains on the same server and I am trying to access a file on one that is perms 77开发者_如何学编程7. I can use file_get_contents with a url but can't do so with a path. What can be preventing this?


This really depends on a few different things. If the file is in a seperate folder, outside of the user folder of one site, than it is possible that open_basedir is in effect and is blocking the read attempt. I believe this is the most likely culprit.

0

精彩评论

暂无评论...
验证码 换一张
取 消