I have this php code:
$images=array();
$root = $_SERVER['DOCUMENT_ROOT'].'SV';
for ($i=1; $i<=$total_pics; $i++){
$images[]=$root.'/ad_images/'.$category.'/thumbs/'.$id_stripped.'_'.$i.'.jpg';
}
And here I display the image:
<?php for ($n=1; $n<count($images); $n++): ?><img src="<?php echo $images[$n];?>"><?php endfor; ?>
But this wont show the image, only a square-box that shows when image is not found.
When I click on properties on the box, the full path is actually correct, and the image file IS THERE, but it act as if it is not there.
HOWEVER, when I use the relative path, it works just fine! Why?
Thanks