Re: Reading Folders

From: Harrie Verveer (newsgroup{remove-this}_at_harrieverveer.com)
Date: 11/09/04


Date: Tue, 09 Nov 2004 10:45:03 +0100

the previous replies say it all.. however it might be nice to
automatically create thumbnails as well with GDlib, while you're looping
through the files:

http://nl3.php.net/manual/en/function.imagecopyresampled.php (nice)
or
http://nl3.php.net/manual/en/function.imagecopyresized.php (crappy)

DaRemedy wrote:
> Hiya,
>
> If I had several folders full of images, how can I get PHP to open the
> folder, read the image names and save the image names (inc extension) to a
> MySQL database?
>
> What I am trying to do is create an image gallery using PHP/MySQL, so that
> everytime i take a load of pics, all I would have to do is get PHP to read
> the contents of the folder and add the filenames to a MySQL database rather
> than having to manually input the names into the database
>
> Any help would be great.
>
> Cheers.
>
> DaRemedy
>
>



Relevant Pages

  • Re: Reading Folders
    ... thumbnails are linked to a popup window displaying the larger image. ... > DaRemedy wrote: ... >> folder, read the image names and save the image names to ... >> the contents of the folder and add the filenames to a MySQL database ...
    (alt.php)
  • Re: Reading Folders
    ... thumbnails are linked to a popup window displaying the larger image. ... > DaRemedy wrote: ... >> folder, read the image names and save the image names to ... >> the contents of the folder and add the filenames to a MySQL database ...
    (comp.lang.php)
  • Re: Reading Folders
    ... DaRemedy wrote: ... > everytime i take a load of pics, all I would have to do is get PHP to read ... > the contents of the folder and add the filenames to a MySQL database rather ...
    (comp.lang.php)
  • Re: Reading Folders
    ... > everytime i take a load of pics, all I would have to do is get PHP to read ... > the contents of the folder and add the filenames to a MySQL database rather ... couldn't have all three stored in the same unique field in separate rows. ...
    (alt.php)
  • Re: Reading Folders
    ... > everytime i take a load of pics, all I would have to do is get PHP to read ... > the contents of the folder and add the filenames to a MySQL database rather ... couldn't have all three stored in the same unique field in separate rows. ...
    (comp.lang.php)

Loading