Get Remote-Image
- From: connyas@xxxxxxxx ("Konrad Priemer")
- Date: Thu, 31 Jul 2008 03:50:06 +0200
Moin,
kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht
geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf
meinen Server zu ziehen.
Irgendwo hab ich da voll die Blockade ;)
Mein "nichtfunktionierender" Versuch:
....
....
$out = "GET ".<URL_REMOTE_IMAGE>." HTTP/1.0\r\nHost:
".$this->host."\r\nUser-Agent: GetWiki for WordPress\r\n\r\n";
$fp = fsockopen($this->host, $this->port, $errno, $errstr, 30);
$File = fopen(<PFAD_ZUM_ASPEICHERN>,"wb");
fwrite( $File, $out );
fclose($File);
fclose($fp);
....
....
THX und Grüße
Conny
- Follow-Ups:
- Re: [PHP] Get Remote-Image
- From: Aschwin Wesselius
- Re: [PHP] Get Remote-Image
- From: "Daniel Brown"
- Re: [PHP] Get Remote-Image
- Prev by Date: Re: [PHP] Not able to load the extensions
- Next by Date: Using $_GET for POST
- Previous by thread: Back to Basics - Why Use Single Quotes?
- Next by thread: Re: [PHP] Get Remote-Image
- Index(es):
Relevant Pages
|