So, I have this error:
Warning: fopen(/path/to/test-in.txt) [function.fopen]: failed to open stream: Permission denied
Performing ls
ls
Check if the user that PHP runs under have "X" permission on every directory of the file path. It will need it to access the file
If your file is: /path/to/test-in.txt You should have X permission on:
/path/to/test-in.txt
/path
/path/to
and read permission on /path/to/test-in.txt