Jump to content

Cannot modify header information - headers already sent by


archVille

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?
Link to comment
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



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.