CodeIgniter Forums
How download images? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How download images? (/showthread.php?tid=2221)



How download images? - El Forum - 07-23-2007

[eluser]brigham[/eluser]
I'm downloading images from the web onto my server.
Can one do this in CI?

Specifically,
1. the user types in some search terms,
2. we do the search on Google images,
3. we show the user the thumbnails,
4. the user clicks on an image and we download it from the web onto our local filesystem (it becomes the user's avatar.)

...I'm not sure how to do #4 in CI

Thanks,
Brigham


How download images? - El Forum - 07-23-2007

[eluser]Imkow@CN[/eluser]
I'm confused. If it's all google, why CI?,...


How download images? - El Forum - 07-23-2007

[eluser]brigham[/eluser]
The avatar-choosing service is just part of a larger social-network website. Plus, we're using the code to enable users to find good images to attach to their user-generated content.

Brigham


How download images? - El Forum - 07-24-2007

[eluser]Imkow@CN[/eluser]
I think it's going to be same as you progromming in bare PHP code without CI.
You are going to need CURL libs or other browser-emulation classes to fetch Google pages, filter out the image data you need, then organize them for your customers.
With CI things can be more easily organized than using bare PHP code