If you want to find any given file inside a folder and its subfolders, you can do that with the code below.
You found some cool royalty-free pictures online, that really want to add to your site. What would you do?
Normally, you would download them locally, fire up your favorite FTP client, connect to your server, navigate to the right folders, and upload them.
With this simple php library, you can now do this programmaticaly. All you need to have is the GD library enabled, which every modern host has nowadays.