I am new in Php GD. I need to create the circle, inside the circle i need to write the text. how to do this? please help me?
I have create the circle. but i am not able to write the text inside the circle. How to write the text inside the circle.
This is my code
Code: Select all
<?php
create_image();
?>
<table>
<tr>
<td> <?php print "<img src=image.png?".date("U").">"; ?> </td>
<td> <?php print "<img src=image.png?".date("U").">"; ?> </td>
</tr>
</table>
<?php
function create_image(){
$im = @imagecreate(600, 200) or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
imageellipse($im, 50, 50, 40, 60, $red);
imageline ($im,65,56,78,78,$blue);
imagepng($im,"image.png");
imagedestroy($im);
}
?>Thanks
C.Rajesh