Jump to content

image generation problem


sasori

Recommended Posts

hi, I ran this code
[code=php:0]
$height = 200;
$width = 200;
$im = imagecreatetruecolor($width,$height);
$white = imagecolorallocate($im,255,255,255);
$blue = imagecolorallocate($im,0,0,64);

imagefill($im, 0,0,$blue);
imageline($im,0,0,$width,$height,$white);
imagestring($im,4,50,150,'Sales', $white);

Header('Content Type: image/png');
imagepng($im);
imagedestroy($im);

 

why am I getting this ouput in browser ? ( i also tried other browsers aside from FF, and its the same stuff)  :confused:

20sujcy.jpg

 

Link to comment
https://forums.phpfreaks.com/topic/189515-image-generation-problem/
Share on other sites

Archived

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

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