I'm running a script on my test server. Basicaly what it does is return all the images in a directory that are in numeric order (1.jpg, 2.jpg 3.jpg etc...). It works fine except that it also outputs these annoying error messages that say "Warning: readdir() expects parameter 1 to be resource"...