read(); while ( !(strtolower(substr($pic, -3)) == 'jpg')) $pic = $d->read(); $d->close(); } $imgSrc = RawURLEncode($categories[$cat]).'/'.$pic; ?> Andy McCoy Photos
Photo Album