I have a hyper-v server with 3 instances running under it, testing, production, and files. The production user can access the mounted files directory with the following permissions; 'read & execute', 'list folder contents', and 'read'. The testing server's user has the same permissions but can't read them.
The error in my PHP logs is
[09-Mar-2012 06:40:07] PHP Warning: file_get_contents(\\Web\Data\files\thumbs\img123.png) >[function.file-get-contents]: failed to open >stream: Permission denied in C:\inetpub\wwwroot\testing\test.php on line 2
My PHP script is
$jpg = file_get_contents('\\\Web\Data\files\thumbs\img123.png');
Are there other settings I'm missing? The PHPInfo says the username is 'test1$'; could the IIS be trying to access the files as a different user?
Thanks.