try this:
$files = opendir($dir) or die("Cannot opendir $dir");
while ($file = readdir($files)) {
// do whatever
}
> -----Original Message-----
> From: Rory O'Connor [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 3:09 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] using GetImageSize in a directory of images
>
>
> recent posts introduced me to the handy GetImageSize, and it's just what
> I need! What I want to do is write a script that will go through a
> directory of images and write [image name];[image dimensions] to a file
> so I can query that into my products database for dynamic use on my
> site.
>
> BUT, i'm a super-duper PHP newbie and i'm unfamiliar with the syntax for
> looping thru all fils in a given directory. Can anyone point me in the
> right direction?
>
> Thanks so much!
>
>
>
> providing the finest in midget technology
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]