The script is very very basic.
All you have to do is edit the code and insert what you need to be printed:
<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/GPL-license.php GNU Public License
*
*/
$randomquote = array(
'My first quote!',
'My second quote!',
'My third quote!',
'My fourth quote!',
'My last quote!'
);
$image = 'signature_bar.png';
$im = imagecreatefrompng($image);
$main_color = imagecolorallocate($im, 51, 102, 153);
$black = imagecolorallocate($im, 0, 0, 0);
$orange = imagecolorallocate($im, 255, 85, 0);
$blue = imagecolorallocate($im, 68, 102, 136);
$red = imagecolorallocate($im, 255, 0, 0);
$green = imagecolorallocate($im, 0, 160, 0);
$left_margin = 10;
imagestring($im, 3, $left_margin, 2, 'My wonderful name!', $orange);
imagestring($im, 2, $left_margin, 18, 'Another text example...', $main_color);
imagestring($im, 2, $left_margin, 30, 'Ok, another one!', $blue);
imagestring($im, 1, $left_margin, 48, $randomquote[rand(0, sizeof($randomquote) - 1)], $green);
header('Content-Disposition: filename=signature_bar.png');
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/GPL-license.php GNU Public License
*
*/
$randomquote = array(
'My first quote!',
'My second quote!',
'My third quote!',
'My fourth quote!',
'My last quote!'
);
$image = 'signature_bar.png';
$im = imagecreatefrompng($image);
$main_color = imagecolorallocate($im, 51, 102, 153);
$black = imagecolorallocate($im, 0, 0, 0);
$orange = imagecolorallocate($im, 255, 85, 0);
$blue = imagecolorallocate($im, 68, 102, 136);
$red = imagecolorallocate($im, 255, 0, 0);
$green = imagecolorallocate($im, 0, 160, 0);
$left_margin = 10;
imagestring($im, 3, $left_margin, 2, 'My wonderful name!', $orange);
imagestring($im, 2, $left_margin, 18, 'Another text example...', $main_color);
imagestring($im, 2, $left_margin, 30, 'Ok, another one!', $blue);
imagestring($im, 1, $left_margin, 48, $randomquote[rand(0, sizeof($randomquote) - 1)], $green);
header('Content-Disposition: filename=signature_bar.png');
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>
When you have edited the PHP file, just upload it to your server, and then write the address in your browser!
Result will be something like this:
I hope you will like this!
dynamic_signature.zip | ||
Description: | Dynamic Signature | Download |
Filename: | dynamic_signature.zip | |
Filesize: | 7.7 KB | |
Downloaded: | 849 Time(s) |