Hi all
I have a system which has images stored outside of web root. For the life of me I cannot get the images to display in my webpage unless I move the folders inside of web root (which is not an option).
I have added a check to see if the path is readable and all is OK, so I cannot see why this is not working:
<?php
if (!empty($param['imagename'])) {
if (is_readable('/home/sites/mydomain.com/secureimages/' . $param['imagename'])) {
echo "ITS READABLE!!!!!!!!!!!!!!!!";
}
?>
<div class="questionimage">
<img src="<?php echo '/home/sites/mydomain.com/secureimages/' . $param['imagename']; ?>" alt="">
</div>
<?php
}
Any thoughts as to why this is?
Thanks for reading.