phppaper Posted March 31, 2008 Share Posted March 31, 2008 I have used a php path for the image herf, but the image came out in a deadlink. <a href="/../../pic/photo.jpg" target="_blank"><img src="/../../pic/photo.jpg" /> The image is 2 levels above this html file, therefore I use this path: "/../../pic/photo.jpg" can someone tell me how to get this image with a correct way to write the path?? Link to comment https://forums.phpfreaks.com/topic/98741-php-path-for-image-href/ Share on other sites More sharing options...
maxudaskin Posted March 31, 2008 Share Posted March 31, 2008 Are you trying to link it? <a href="../pic/photo.jpg" target="_blank"><img src="../pic/photo.jpg" /></ a> If not <img src="../pic/photo.jpg" /> Link to comment https://forums.phpfreaks.com/topic/98741-php-path-for-image-href/#findComment-505295 Share on other sites More sharing options...
phppaper Posted March 31, 2008 Author Share Posted March 31, 2008 no, I try to link to an image 2 levels up not one level. The way you show me is just one level up. but I use /../../pic/photo.jpg which is 2 levels up path but not working. Any thought? Link to comment https://forums.phpfreaks.com/topic/98741-php-path-for-image-href/#findComment-505313 Share on other sites More sharing options...
maxudaskin Posted March 31, 2008 Share Posted March 31, 2008 I thought ../ is root? Link to comment https://forums.phpfreaks.com/topic/98741-php-path-for-image-href/#findComment-506013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.