photo_gallery
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
photo_gallery [2024/05/01 13:46] – admin | photo_gallery [2024/05/02 14:32] (current) – admin | ||
---|---|---|---|
Line 10: | Line 10: | ||
### | ### | ||
- | [[https:// | + | [[https:// |
=== Live Demo === | === Live Demo === | ||
Line 20: | Line 20: | ||
- Web server running Linux and Apache or Lighttpd plus PHP | - Web server running Linux and Apache or Lighttpd plus PHP | ||
- A directory source of .jpg images with lower case file names | - A directory source of .jpg images with lower case file names | ||
- | - < | + | - < |
=== Description === | === Description === | ||
Line 26: | Line 26: | ||
A single php script that generates thumbnail images and presents them in a ' | A single php script that generates thumbnail images and presents them in a ' | ||
### | ### | ||
+ | |||
+ | === The Code === | ||
+ | < | ||
+ | <?php $dirname=basename(dirname(__FILE__));?> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | |||
+ | <div class=' | ||
+ | <? | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | <?php | ||
+ | | ||
+ | | ||
+ | foreach(glob(" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | echo "<a href=' | ||
+ | < | ||
+ | | ||
+ | ?> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
=== Installation === | === Installation === | ||
- | This is pretty much a manual setup. | + | ### |
+ | This is pretty much a manual setup. | ||
- | < | + | Note: the above is case sensitive |
You should also be aware that if you resize your main images some image programs will wipe out your EXIF data. I use [[https:// | You should also be aware that if you resize your main images some image programs will wipe out your EXIF data. I use [[https:// | ||
+ | |||
+ | That's it. Hope you find this useful. If you have any comments or suggestions for improvements please do let me know. (admint AT cpcnw DOT co DOT uk) | ||
+ | |||
+ | < | ||
### | ### | ||
photo_gallery.1714571210.txt.gz · Last modified: 2024/05/01 13:46 by admin