[PHP] Re: getting directory info

2002-08-28 Thread Wm
This is giving me a parse error: ?php $path = '/usr/local/...full.path.snipped.../httpdocs/thumbnails/'; $dir = opendir($path) or die(Could not open $dir); while ($file = readdir($dir)){ if (stristr($file, 'jpg') || stristr($file, 'jpeg')){ echo A

[PHP] Re: getting directory info

2002-08-27 Thread Richard Lynch
Can I use php to get a list of all the jpgs in a folder? I want to make a photo album type thing for a website, and I want it to be real simple (i.e. you put photos (jpgs) in a folder called photos and upload them. Then the album is built dynamically using php. Thoughts?