Thursday, December 20, 2018

php - file_get_contents(): open_basedir restriction in effect




I got a strange error message:




file_get_contents(): open_basedir restriction in effect.
File(/path/to/file) is not within the allowed path(s):
(/Library/WebServer:/var/tmp:/path/to)




As seen, the path to the file has been added in the allowed paths, why does open_basedir restriction remain in effect?



Answer



You’d need to check permissions of /path and /path/to. Somehow it didn’t show You don't have permission to access but this open_basedir restriction in effect message.


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...