My server supported as " GD support : enabled" (linux OS using)
but this program not displayed the graph.
displayed the message "The image “http://xxx.xxx.xxx.xxx/test3.php” cannot be displayed, because it contains errors.
<?php
header("Content-type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
What is the problem with the code?
thanks in advance
Give me suggestion!
fernandodonster 0 Newbie Poster
bigattichouse 3 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.