I have a file with these permissions (0644)
-rw-r--r-- 1 root root
So from my understanding this file should be readable by anyone.
Now I have this code:
file_get_contents('/path/to/file');
And it is giving me this
Warning: file_get_contents(...): failed to open stream: Permission denied in ...
What am I missing?
I'm running it from a web server under www-data
.