I have this PHP code to access mapped drive Z:
$mapped = "\\\\192.168.0.xxx\\Shared";
system('net use Z: "$mapped" @Password /user:Username /persistent:no');
Then I check if the photo exists on the mapped drive:
$pic_path = "Z:/PHOTOS/SUB_FOLDER/Photo.jpg";
echo file_exists($pic_path);
//returns 1 (true)
The path is working fine. However, it returns a broken image. Why?
Please help. Thanks!
UPDATE:
I already tried these paths:
\\\\192.168.0.xxx\\e$\\Shared\\PHOTOS\\SUB_FOLDER\\Photo.jpg<br/>
\\\\192.168.0.xxx\\e:\\Shared\\PHOTOS\\SUB_FOLDER\\Photo.jpg<br/>
\\\\192.168.0.xxx\\Shared\\PHOTOS\\SUB_FOLDER\\Photo.jpg<br/>
All of them returns 1 value. But I still receive a broken image.