Does anybody knows why this isn't working? It just prints a white image of 6x6. The server has installed GD 2.0.
<?php
header ("Content-type: image/png");
$color = "#AFD61B";
$image = @imagecreate (6, 6) or die ("");
imagecolorallocate ($image, 255, 255, 255);
imageline ($image, 1, 1, 6, 1, $color);
imageline ($image, 1, 1, 1, 6, $color);
imageline ($image, 6, 1, 6, 6, $color);
imageline ($image, 1, 6, 6, 6, $color);
imagefilledrectangle ($image, 3, 3, 4, 4, $color);
imagepng ($image);
imagedestroy ($image);
?>