Jump to content

Archived

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

archVille

Cannot modify header information - headers already sent by

Recommended Posts

Cannot modify header information - headers already sent by

This is the message when i enter the below easy and small source code FOR CREATING A FILLED RECTANGLE :

<?php
header("Content-Type: image/gif");
$im = ImageCreate(100, 100);
// colors...
$black = ImageColorAllocate($im, 0, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
// draw rectangle
ImageFilledRectangle($im, 25, 25, 75, 75, $white);
// Print and destroy the image
ImageGIF($im);
ImageDestroy($im);
?>

After that message i get a lot of unrecognizable string characters ...

What is wrong ????? Anyone?

Share this post


Link to post
Share on other sites
[!--quoteo(post=377781:date=May 28 2006, 04:26 AM:name=PMeres)--][div class=\'quotetop\']QUOTE(PMeres @ May 28 2006, 04:26 AM) [snapback]377781[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Cannot modify header information - headers already sent by

This is the message when i enter the below easy and small source code FOR CREATING A FILLED RECTANGLE :

<?php
header("Content-Type: image/gif");
$im = ImageCreate(100, 100);
// colors...
$black = ImageColorAllocate($im, 0, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
// draw rectangle
ImageFilledRectangle($im, 25, 25, 75, 75, $white);
// Print and destroy the image
ImageGIF($im);
ImageDestroy($im);
?>

After that message i get a lot of unrecognizable string characters ...

What is wrong ????? Anyone?
[/quote]



If you can try and post a screenshot or an example of the error you are getting

Cheers



Share this post


Link to post
Share on other sites

×

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.