I have no clue why this isn't working.
$j = 0;
$aLinks = array();
for($i=0;$i < count($aImage);$i++) {
$filename = $aImage[$i];
if (file_exists($filename)) {
$aLinks[$j] = "<a href=\"items.phtml?item=$aID[$i]\"><img src=\"".$aImage[$i]."\" border=\"0\"></a>";
$j++;
};
};
the file_exists command is always returning false and yet if I change it to !file_exists the images show up and the link works just fine (the broken links also show up though). Please help me, i'm oging crazy here. Thank you.