mike628
mike628

Reputation: 49351

php file_get_contents

I have 2 domains on the same server and I am trying to access a file on one that is perms 777. I can use file_get_contents with a url but can't do so with a path. What can be preventing this?

Upvotes: 0

Views: 487

Answers (1)

Travis Weston
Travis Weston

Reputation: 924

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.

Upvotes: 3

Related Questions