How would I edit this PHP script to skip files that already have generated thumbnails?

Eli

New member
http://www.webcheatsheet.com/php/create_thumbnail_images.php

How would I modify that to make it so that the script skips over images that thumbnails already exist for? I have a gallery of images and when I upload more, it 'recreates' thumbnails for those images that already exist (overwrites the old thumbnails with an exact duplicate). How would I make it skip these images that already have a thumbnail existing?

Thanks!
If it matters, I'm only using the first "part" of the code (first PHP code box on the link given above).
 
Back
Top