todo el contenido del archivo .php ...es el siguiente..
Código:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<?
$img = imagecreate(200,200);
imagecolorallocate($img,0xff,0,0);
header("Content-type: image/png");
imagepng($img);
?>
</body>
</html>
Espero que me puedas ayudar ...