★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001908.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  Thumbnail gallery with php

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Thumbnail gallery with php
ironlung_sw
Junior Member
posted July 13, 2000 03:45 PM     Click Here to See the Profile for ironlung_sw   Click Here to Email ironlung_sw     Edit/Delete Message Reply w/Quote
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
posted July 13, 2000 10:24 PM     Click Here to See the Profile for weeder   Click Here to Email weeder     Edit/Delete Message Reply w/Quote
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.

------------------

- weeder

polman
Member
posted July 14, 2000 10:29 AM     Click Here to See the Profile for polman     Edit/Delete Message Reply w/Quote
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
posted July 14, 2000 11:15 AM     Click Here to See the Profile for ironlung_sw   Click Here to Email ironlung_sw     Edit/Delete Message Reply w/Quote
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

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.