Re: Gallery Script
| From: | Colin Guthrie | Date: | Tue, 27 Nov 2007 11:35:20 +0000 |
| Subject: | Re: Gallery Script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265061@lists.php.net to get a copy of this message | ||
Tom Chubb wrote:
> Hi all,
> I have a working gallery script which reads a directory then shows all
> thumbnails, each linking to the full size image.
> I'm trying to change it so that the page shows an image (fullsize)
> then links to the previous/next images in the sequence & then all the
> thumbnails below (the bit that's working fine at the moment). The
> filenames are straight from the camera (eg DSC102834.jpg or something)
> so I know that I need to get all the filenames into an array then use
> the key indexing or something, but I'm not sure how to do it?
> Also I'm not sure if I should be using readdir or glob?
>
> I've modified the code below so that it just displays the text of the
> filename rather than the actual image to speed up testing/reduce
> bandwidth.
>
> If anyone could point me in the right direction I'd really appreciate it
If you don't mind relying on javascript then take a look at lightbox or
thickbox and similar soltuions.
These are solutions where you only need to generate a gallery page with
the thumbnails and it will do the rest for you complete with
previous/next links and even thumbnails...
Col