Write a PHP class that will download images from top 100 search results for a given keyword from these Images Search Engines & Image Hosting Sites:
- [login to view URL]
- Google Images
- Yahoo Images
- MSN Images
- [login to view URL]
- [login to view URL]
## Deliverables
The class will get the following details to process the request:
**- id:** to be used in a "[login to view URL]" filename for saving the images, where "id" is the number that I provided to the class by me and "sequence" is the sequence number of the downloaded image and starts from 1 till the last downloaded image.
**- keyword:** is the keyword used to search for the images
**- save directory:** is the path on the server where to save the images to.
The class will use the keyword to generate the search results. Then it will save top results on all search engines/image hosting sites and download the images to the specified "save directory" with [login to view URL] as filename. Because it will only search for large images it must set the search engines/image hosting sites to provide large images results only (if they have the setting for that)
The class function will also return the number of saved images (which is the same as the last "sequence" number used in [login to view URL] filename). This way I will know how many images were saved for a certain keyword.