Jump to content


Photo

Looping Through Files In A Folder


  • Please log in to reply
No replies to this topic

#1 mhoctober

mhoctober
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 10 May 2006 - 08:29 PM

Experts...

I have users upload files (gifs, jpegs etc..) via a form and code that remanes these files, creates a specifically named folder and stores the files therein!

I also have code that can then create

A. a thumbnail and
B. a smaller version of the original file for viewing when the thumbnail is clicked

What I'm missing is code that 'links' the two together.

So - I'm looking for a way to...

1. cycle through all the files in a known folder
2. pass each file to code that creates the thumbnail and reduced file size file - that will create 1 thumbnail and 1 reduced file from each original
3. delete the original files in the folder once 1 & 2 have completed succesfully

Any ideas?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users