Reply to Re: Down or Upload Problem

Your name:

Reply:


Posted by J.O. Aho on 12/09/06 12:03

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

[Back to original 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

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