You are here: Re: outputing image directly to browser « PHP Programming Language « IT news, forums, messages
Re: outputing image directly to browser

Posted by Schraalhans Keukenmeester on 06/08/07 11:52

At Fri, 08 Jun 2007 02:44:02 +0200, Iván Sánchez Ortega let h(is|er)
monkeys type:

> Jon Slaughter wrote:
>
>> can one "stream" image data to a browser?
>
> Yeah, you can encode the image in base64, but IMHO it's not worth it.
>
>> Anyway around this?
>
> The classic way: do <img src='foo.php'>, where foo.php is the *only* script
> that runs imagepng().
>
> This means: do *not* run imagepng() in your main script.

Ivan, can you explain why the main script shouldn't run it? I think I am
missing a clue here. Other than that I can only second your opinion on
streaming image data. Can't think of ANY useful application. But maybe
someone can?

--
Schraalhans Keukenmeester - schraalhans@the.Spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') < 0"

 

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

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