Error while using imagecreate function
<pre><code>&lt;?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);

?&gt;
</code></pre>

<p>When i executed the above code i have  got an error like this</p>

<p>"The image  can't be displayed because it contains errors "</p>

<p>Same error shows in server also</p>
