You are here: Re: capture images remotely with PHP « PHP Programming Language « IT news, forums, messages
Re: capture images remotely with PHP

Posted by artlover70 on 02/05/07 08:20

Thank you all so much for your helpful tips and directions.

Jay

On Feb 2, 4:44 pm, "Carl" <c.gro...@gmail.com> wrote:
> On Feb 2, 4:05 pm, artlove...@yahoo.com wrote:
>
> > Hi everyone !
>
> > I am just wondering if capturing an image remotely with php is
> > doable ?
>
> > I am working on a project for my department where I need to write php
> > code to capture anremoteimage and save it to a local folder/web site
> > directory given an image's URL.
>
> > Have anyone done anything like this ? If you have, do you mind share
> > your ideas/sample code ?
>
> > Thank you in advance,
>
> > Josh
>
> If by "capturing an image remotely" you mean download and image from
> another website and store it locally, you have a couple of options.
> Both of these can be very simple depending on the configuration of
> your php installation.
>
> 1. If allow_url_fopen is enabled on your machine, you can simply use
> fopen to download the image, and use the resulting file handle to copy
> the data to wherever you wish.http://www.php.net/fopen: see the comment made on '22-Jan-2007
> 02:34', which, If i understood you correctly, does exactly what you
> want.
>
> 2. Slightly more complex, but if your php installation supports curl
> you can simply use curl to fetch theremotedata.http://www.php.net/curl
>
> Carl.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация