php3-list | 199903
Date: 03/20/99
- Next message: Chad Cunningham: "Re: [PHP3] Netscape vs. ID - parse error"
- Previous message: Dave: "Re: [PHP3] Problems compiling PHP with SNMP & GD support on Digital Unix"
- Maybe in reply to: John Melville: "[PHP3] Grabbing an image from a URL"
- Next in thread: Bo Meyer: "Re: [PHP3] Grabbing an image from a URL"
- Reply: Bo Meyer: "Re: [PHP3] Grabbing an image from a URL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Chad Cunningham: "Re: [PHP3] Netscape vs. ID - parse error"
- Previous message: Dave: "Re: [PHP3] Problems compiling PHP with SNMP & GD support on Digital Unix"
- Maybe in reply to: John Melville: "[PHP3] Grabbing an image from a URL"
- Next in thread: Bo Meyer: "Re: [PHP3] Grabbing an image from a URL"
- Reply: Bo Meyer: "Re: [PHP3] Grabbing an image from a URL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

