How come sometimes images wont show when using the full path?

kgsnwd1927

New Member
I have this php code:\[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'; }\[/code\]And here I display the image:\[code\]<?php for ($n=1; $n<count($images); $n++): ?><img src="http://stackoverflow.com/questions/1992069/<?php echo $images[$n];?>"><?php endfor; ?>\[/code\]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
 
Back
Top