php ImageCreate
<p>I am new to php and am trying to simply print a message and create a rectangle but this doesn't work. I have looked at the gd extension in the php.ini file in the wamp directory and it is not commented out. Please help - why won't it work :(</p>

<pre><code>&lt;?php
print ("hello world");
$im = ImageCreate(200,200);
$white = ImageColorAllocate($im,0xFF,0xFF,0xFF);
$black = ImageColorAllocate($im,0x00,0x00,0x00);
ImageFilledRectangle($im,50,50,150,150,$black);
header('Content-Type: image/png');
ImagePNG($im);
?&gt;
</code></pre>
