Reply to Re: image src and relative path

Your name:

Reply:


Posted by Sanders Kaufman on 12/22/07 00:03

"Michael Fesser" <netizen@gmx.de> wrote in message
news:faenm390hol9gjafv6e2g07mfq1vvrvnqd@4ax.com...
> .oO(Bob Bedford)
>
>>The problem is that I've to show html code and images on the same
>>document.
>>I tried this:
>>header('Content-type: text/plain');
>> header('Content-type: image/png',false);
>
> Of course this cannot be done. One URL, one document.
> You need a second script to fetch the image.

There are ways around this, but they can be damned tough.

The simplest is to base-64 encode the binary image, and put that data
inline.
That way, instead of linking to the binary data, it's right there in the
HTML code.
That has the added benefit of giving you an oportunity to manipulate the
image (stretch, watermark, etc) for each session.

[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

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