I am currently hosting a php script on a public web server that I use to retrieve an image for me hosted locally on the same server. I was recently told I would need to do the same thing for another process, except our new process will need to pull images from a Windows server. Could anyone recommend the best way to go about doing this? I have tried just utilizing a direct path such as the following with no luck:
<?
$im = file_get_contents('\\SERVER-NAME\Photos\image.jpg');
header('content-type: image/gif');
echo $im;
?>
Any insight would be greatly appreciated. Thanks in advance for any assistance!