Adobe uses true ~ basically just resizing the original and renaming. Haven't tried it in the script - Adobe seems easier at this point.
I've seen a few scripts similar in concept but was hoping that I could creat a truly dynamic page. I see though with a browser only parsing, unlike the JVM, I cannot hold on to images without physical files.
You can use...
<br />while($img = readdir($img_directory))<br />{<br /> $split = explode(".", $img);<br /><br /> //string together any image types here...||..||..||<br /> if ($split[1] == "jpg" || $split[1] == "jpeg") <br /> $images[] = $img;<br /><br />}// end creating array of image items in directory<br /> ...to filter non image files and avoid your errors.
Thanks for all the replies.
Tom