Jump to content

GD Library: Problem with header


Recommended Posts

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

Do you know what I should do?
Link to comment
https://forums.phpfreaks.com/topic/30882-gd-library-problem-with-header/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.