Reply to Re: Displaying Pictures Problems

Your name:

Reply:


Posted by Stefan Rybacki on 11/25/05 14:35

SteadyEddie wrote:
>
> I am ahving trouble trying to get PHP to display a Jpeg Image. I ahve set
> the contect type to image/jpeg at the top of the page. i have the gd2
> modulde installed.

Where did you set the content type and how?

>
> when the im is displayed it shows as a random jumble of letters and
> characters instead of the image.
> this is the code im using:
>
> <?php

The content type setting is missing here:

header("content-type: image/jpeg");

> $im = imagecreatefromjpeg("folder/pictures/picture1.jpg");
> imagejpeg($im,"", 75);
> imagedestroy($im);
> ?>
>

Regards
Stefan

>

[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

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