r/PHP•
azies

Auto image to a name/item, possible?

Hello r/php

I'm in the stages of evolving my code and creating a site. I have several functions I want to create, and be as effective as possible for the end user.

I'm wondering whether it's possible to have a script that auto adds an image to a name/item. Eg. user types in Lego, and a script will run and find an image (like take the Wiki image, or first image in a Google search) that matches the item. It should download the picture onto it's own server, and save the source.

Is this possible, and is there any scripts out there that does this or something similar? - So I can read/get ideas of their code.

I want this so a user doesn't have to find an image herself, though optimally there should probably be an option to mark it as "inappropriate" if the "autoImage" doesn't match.

tldr; a script that grabs an image that matches an item, downloads onto server and saves source, is it possible?

Posted Jul 10, 2012, 9:00 AM UTC

26
Loading comments…