GD Library: Problem with header
Posted by: georgepapa (---.eng.auth.gr)
Date: December 16, 2006 04:14PM


Hi!

I have already installed gd2 library, but when i write the code:

header("Content-type: image/jpeg"winking smiley;
$im = @imagecreatefromjpeg('C:\RedFlowers.jpg'); /* Attempt to open */
touch($im);
imagejpeg($im);

the following warning is displayed:

Cannot modify header information - headers already sent by (output started at C:\wamp\www\mywebsite\ImageRetrieval\Browse.php:7) in C:\wamp\www\mywebsite\ImageRetrieval\Browse.php on line 159

What should I do?


Options: ReplyQuote


Sorry, only registered users may post in this forum.