SarniaMJ Posted October 6, 2011 Share Posted October 6, 2011 I am using this code to open an image on a separate file server... <a href="\\\SeparateFileServer\IntranetPhotos\\'.$rowIn['id'].'.jpg" target="_blank"> <img src="\\\SeparateFileServer\IntranetPhotos\thumbnails\thmb_'.$rowIn['id'].'.jpg" alt="Cadastre='.$rowIn['cadastre'].' Author='.$rowIn['author'].' Details='.$rowIn['details'] .'" width="150" height="112"></a> ...everything is based on Window 2008 Servers. It worked fine previously but all of sudden the link will not link to and open the image. It does however display the thumbnail which is used as the link. It seems to work fine using IE 7.0.5730.11 but not with any later versions. Has anyone got any suggestions? I just cannot fathom out what is going on. Thank you... Quote Link to comment https://forums.phpfreaks.com/topic/248563-cannot-link-to-image-file-on-remote-file-server/ Share on other sites More sharing options...
gristoi Posted October 7, 2011 Share Posted October 7, 2011 make your code cross server compatible, try using DIRECTORY_SEPARATOR or even just a forward slash '/'. this works on both linux and windows machines Quote Link to comment https://forums.phpfreaks.com/topic/248563-cannot-link-to-image-file-on-remote-file-server/#findComment-1276749 Share on other sites More sharing options...
SarniaMJ Posted October 7, 2011 Author Share Posted October 7, 2011 Thanks for your help but that doesn't help. When I click on the link then nothing happens. I try it on IE 7.0.5730.11 and voila, it's all rosy. Quote Link to comment https://forums.phpfreaks.com/topic/248563-cannot-link-to-image-file-on-remote-file-server/#findComment-1276803 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.