You are here: Re: image src and relative path « PHP Programming Language « IT news, forums, messages
Re: image src and relative path

Posted by Bob Bedford on 12/21/07 08:25

>>Also I've tried to do a "imagepng()" but instead of showing the image it
>>shows the source of the image.
>
> This means that you've sent an inappropriate HTTP Content-Type header or
> none at all, so the server will default to text/plain. Quite easy to fix
> with a header() call.
>
Hi Micha,
thanks for replying.

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);

but the image is still shown as text.
How can I set multiple headers ?

 

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

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