July 13th, 2000, 05:45 PM
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.
July 14th, 2000, 12:24 AM
July 14th, 2000, 12:29 PM
To pass variables from one page to the next just do...
Then you can increment the offset every page. If you plan on using strings, you might want to see urlencode and urldecode too.
July 14th, 2000, 01:15 PM
Thanks both for you help, i've got it working thanks to weeder's directory example.