Cannot modify header information - headers already sent by
- by bhaskaragr29
<?php
//require_once 'wordwrap.php';
//$text="Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum";
$im=imagecreatefrompng('testing.png');
//$arr=word($text);
$white = imagecolorallocate($im,255,255,255);
$font='arial.ttf';
$m=121;
for($i=0;$i<sizeof($arr);$i++)
{
imagettftext($im,25,11,124,'Hello world!', $white);
}
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
I am getting error..please help me on this.