| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001908.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() PHP
![]() Thumbnail gallery with php
|
| next newest topic | next oldest topic |
| Author | Topic: Thumbnail gallery with php |
|
ironlung_sw Junior Member |
Say i have a directory with loads of images, with no particular names, and i want to have php scan the directory for thumbnails (blah_small.gif), and then put, say 40 on one page, 40 on the next etc. They would probably be in alphabetical order. I could pass a variable "from" to the page to determine the start image. How would i do this? I need to get php to scan the image directory and possibly load all the filenames into an array or something. Thanks for any help in advance. |
|
weeder Member |
i was bored, so i made something simular for PHP4. it's at http://www.weeder.f2s.com/thumb.php.txt if you want to use it, or, if you use PHP3, get ideas from. ------------------ |
|
polman Member |
To pass variables from one page to the next just do... www.domain.com/page.html?offset=40 Then you can increment the offset every page. If you plan on using strings, you might want to see urlencode and urldecode too. |
|
ironlung_sw Junior Member |
Thanks both for you help, i've got it working thanks to weeder's directory example. |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.