I have the following code, I'm just wondering if there is an easy way to center the text. Thanks.
<?php
$im = @imagecreate (550,15);
$background_color = imagecolorallocate ($im, 0, 0, 0);
$text_color = imagecolorallocate ($im, 255, 255, 255);
$time = date("g:i:s A");
$date = date("F j, Y");
$number = "It is " . $time . " on " . $date . "!";
imagestring ($im, 3, 1, 1, $number, $text_color);
header ("Content-type: image/png");
imagepng ($im,'',80);
?>