Re: Re: Displaying images
| From: | O. Lavell | Date: | Thu, 28 May 2009 08:57:52 +0000 |
| Subject: | Re: Re: Displaying images | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293268@lists.php.net to get a copy of this message | ||
Miller, Terion wrote:
[..]
> header("Content-type: img/jpeg");
[..]
> This page isn't working and if I try to browse this page it wants to
> open it with an editor, it won't view in the browser.
>
> What am I doing wrong? Is it the code or the data?
"Content-type: img/jpeg" is undefined, the browser would not know what to
do with it. Try "image/jpeg" which is the official MIME type.