<? function getImageWithText($text, $font, $size) { $arr = imagettfbbox($size, o, $font, $text); $img = imagecreatetruecolor($width, $height); $white = imagecolorallocate($img, 255, 255, 255); $black = imagecolorallocate($img, 0, 0, 0); imagefill($img, o, o, $white); imagegettftext($img, $size, 0, 0, $height - 5, $black, $font, $text); return $img; } $img = getImageWithText("napis", "arial.ttf", 30); imagejpeg($img); imagedestroy($img); ?>
Niestety pojawia siê b³±d:
Kod
Parse error: syntax error, unexpected '[' in C:\Program Files\WebServ\httpd\skrypt.php on line 6
Mo¿e kto¶ mi pomo¿e