I recently gave someone a script I wrote which does some writing to and deleting from directories. I've thoroughly tested the script in two different hosting environments and it worked flawlessly.
When he tried to run it he got an error and I'm sort of stumped as to what went wrong. The only thing I know (assume) is that it must be caused by his hosts configuration, server or version of php. Tells you a lot, doesn't it?
Here's the error:
Warning: Unknown(/irrelevant/path/removed/script.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)(): Failed opening '/irrelevant/path/removed/script.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
How can php have an error on line 0? What's a warning "(null)"? How does a webserver manage to fail including a php file being run? If the file wasn't there we would have a 404, no?
Any tips on what is causing this would be appreciated. As if phps error messages weren't cryptic enough trying to make sense of unknown and null seems to lead me in circles.
edit: The plot thickens. It seems unlikely now that the problem has anything to do with the server, configuration or the version of php since he is running the script on the same host I tested it on. All I can think of is that something must be different about his account. I was hoping someone would have experience with this error message and that it means php is turned off or arbitrarily decides not ro run or something... I'm stumped.