georgepapa Posted December 16, 2006 Share Posted December 16, 2006 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 159Do you know what I should do? Quote Link to comment https://forums.phpfreaks.com/topic/30882-gd-library-problem-with-header/ Share on other sites More sharing options...
wildteen88 Posted December 16, 2006 Share Posted December 16, 2006 All the info is in the error message. You are getting that error because you have some sort of output on line 7 in Browse.phpPost lines 4 - 10 here from Browse.php Quote Link to comment https://forums.phpfreaks.com/topic/30882-gd-library-problem-with-header/#findComment-142502 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.