<?php $img=imagecreate(300,300); $img=imagecreatefrompng("buttony/podklad1.png"); $orange=imagecolorallocate($img,220,210,60); $white=imagecolorallocate($img,225,225,225); $black=imagecolorallocate($img,0,0,0); imagefill($img,0,0,$black); imagerectangle($img,10,10,30,30,$orange); imagefilledrectangle($img,30,30,50,50,$orange); imageellipse($img,180,20,20,20,$orange); imagefilledellipse($img,20,180,20,20,$orange); imagefilledarc($img,40,30,100,100,30,120,$orange,IMG_ARC_PIE); imagestring($img,5,80,80,'PHP jest OK',$orange); ?>
po odpaleniu w przeglądarce, wystepuje błąd: ''obrazek http://127.0.0.1/txt.php, nie możę zostać wyświetlony, ponieważ zawiera błędy."
czemu?
