Please help!
I get this instead of a circle on a red background. I copied and pasted the code from a tutorial, so not sure why it is not working.
Thanks for your help
Hannah
<?php $img = imagecreate(200, 200); $red = imagecolorallocate($img, 255, 0, 0); $black = imagecolorallocate($img, 0, 0, 0); imagearc($img, 100, 100, 150, 150, 0, 360, $black); imagepng($img); imagedestroy($img); header("Content-type: image/png"); ?>This is what the output is.
‰PNG IHDRÈÈ—–<ÝPLTEÿA£}IDATX…í—Anà E ±Ú,"5Ë.ªŠ#äYp”…£ù(9B—ݵ‘buf>|d!7r$b°Ÿ= †ÿ‡¡—^¶VÞ~¾Ë÷5¼^‹ä|û}™naWzèCm¹ÜŸ,K÷:w˜ë÷Œœæú%#Ó\»Àýµ" r²/´ðNLA¢; tF“!^µƒ!£jIj˜œ¾o4ä¢Úv ;±}ˆªí ôOy:šØ.ìÉ]6B0Dç Ñ}H†èSJUp$, #éN1>ùäüD¢a ~‰@ø’#$‘ ”à •ð-_µty‘-‡G®¬Kp°%§uIÈˆß ‰q< ÙάzÔ—õ¨•bÝõe…]woÙešv³dÉ®É÷à–냵ÁµK‹ªèªˆNˆë7®ùZ$×£\ÃrÝ[ÑÊ<®É¹ŽçÚŸûî1*¾„O>îø'Ã}VÅ›q?Ç= ÷¯Éý)÷´Ì½s/½ü{ùÛ1ÀöÇ÷#IEND®B‚