First, know that you will need a webserver supporting php. Other than that, you need: a [working] brain and a small amount of php knowlege.
Lets begin.
If you don't know what this does then you need to go brush up on php.
Create a blank 60x30 image in the server's memory.
Give the image a black (RGB-0,0,0) background.
Give the image a cyan foreground color.
Generate a random number from 1 to 5. This will be used to select a random message in a second.
Generate a message from the random number and place it inside $message.
Write the message to the image using the text color specified earlier.
Send the appropriate headers to the client.
Send the image data to the client and then delete it to free up memory on the server.
This is just the beggining. And your sigs will look pretty crappy with just this code. It is up to you to add bells and whistles to it. Have fun.
Lets begin.
Code:
<?php
?>
Code:
$image = imagecreate(150, 50);
Code:
$bgColor = imagecolorallocate ($image, 0, 0, 0);
Code:
$textColor = imagecolorallocate ($image, 225, 255, 255);
Code:
$rand = rand(1, 5);
Code:
switch ($rand) {
case 1:
$message = "Another Response #1";
break;
case 2:
$message = "Another Response #2";
break;
case 3:
$message = "Another Response #3";
break;
case 4:
$message = "Another Response #4";
break;
case 5:
$message = "Another Response #5";
break;
}
Code:
imagestring ($image, 5, 5, 8, $mesage, $textColor);
Code:
header("Expires: Mon, 5 Jun 1999 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: image/jpeg');
Code:
imagejpeg($image);
imagedestroy($image);
This is just the beggining. And your sigs will look pretty crappy with just this code. It is up to you to add bells and whistles to it. Have fun.


