Hi!
I have already installed gd2 library, but when i write the code:
header("Content-type: image/jpeg");
$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
Also, instead of an image many letters without meaning appear!
Do you know what I should do?
GD Library: Problem with header
Moderator: General Moderators
-
GEORGEPAPA
- Forum Newbie
- Posts: 1
- Joined: Sat Dec 16, 2006 9:59 am
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: