You are here: Re: Down or Upload Problem « All PHP « IT news, forums, messages
Re: Down or Upload Problem

Posted by Wolfgang on 12/09/06 12:23

J.O. Aho wrote:
> Wolfgang wrote:
>> Hello,
>>
>>
>> Can anybody tell how to download a picture e.g.
>>>> http://www.google.de/intl/de_de/images/logo.gif
>> and how to move it to my FTP Account of my Webhost whenever I call my
>> Site.
>>
>>
>> $picture=
>> file_get_contents("http://www.google.de/intl/de_de/images","logo.gif");
>> echo "Daten: $picture<br>";
>>
>> does not do anything.
>>
>> Thanks a lot for any help
>>
>> ...wolfgang
>
> --- showgoogleimage.php ---
> <?PHP
> $picture=file_get_contents("http://www.google.de/intl/de_de/images/logo.gif");
>
> $length=strlen($picture);
> header('Last-Modified: '.date('r'));
> header('Accept-Ranges: bytes');
> header('Content-Length: '.$length);
> header('Content-type: image/gif');
> echo $picture;
> ?>
> --- eof ---
>
> --- the other php script ---
> echo "Daten: <img src=\"showgoogleimage.php\" alt=\"Google.de\"
> title=\"Current google image\">";
> --- eof ---
>
>
> //Aho


Thanks a lot of for your advice,

I still do something wrong, when I execute your Code nothing happen.
There is no need for me to show the picture (it does not appear either),
I would be happy if I had the picture on my FTP after I called my Site.

.... wolfgang

 

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

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