Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] Grabbing an image from a URL From: Dan Wilson (dan_wilson <email protected>)
Date: 03/20/99

Probably the easiest way to do this is with a system or exec call.
It's a serious hack, but try this.

exec("GET http://www.thedomain.com/their.gif > myfilename.gif");

This just uses the systems GET method to pull the image in and you can pipe
it wherever you want.

I know that this works on a linux system, but don't know about win32 etc.
Just try it from the command line and see.

-Dan Wilson

John Melville wrote:
>I've got a project I'm working on and I'm stumped by this. I'm trying to
>grab an image from a URL supplied by the user
>(http://www.theirdomain.com/their.gif) and save it locally using PHP.
>Anyone know if this is even possible, everything I've tried has failed.

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>