Bored Again. Another random PHP signature
Yes, it's Tim's bored time again! This time I made a random signature that gets whether it is AM and displays accordingly :P
If you want it the URL is http://www.lolz.co.uk/greetings/bar.php. If you wanna host it yourself/customize it, here is the code:
PHP Code:
<?php
header("Content-type: image/png");
$am_pm = date('a');
if ($am_pm == "am")
$message = "Good morning!";
else {
$message = "Good evening!";}
$im = imagecreatefrompng("template.png");
$textcolour = imagecolorallocate($im, 0, 0, 0);
$font = "verdana.ttf";
imagettftext($im, 10, 0, $x, $y, $textcolour, $font, $message);
imagepng($im);
?>
You'll need to upload your template file and the verdana font file.