Jump to content


Photo

Cannot modify header information - headers already sent by


  • Please log in to reply
1 reply to this topic

#1 archVille

archVille
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 28 May 2006 - 09:26 AM

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?

#2 wild_dog

wild_dog
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 28 May 2006 - 09:33 AM

[!--quoteo(post=377781:date=May 28 2006, 04:26 AM:name=PMeres)--][div class=\'quotetop\']QUOTE(PMeres @ May 28 2006, 04:26 AM) View Post[/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








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users