FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

php signature genarator

 


mahirharoon
the php signer used in my sig
A.file folders note
1.make a folder with any name you want but should end with .png (otherwise it won't work because the forum software will not allow)
2.should be chmodded 777
B.the code
1.index.php
Code:
<?php
//the header
header("Content-type: image/png");
//define variables
//create image
$im = imagecreate([color=darkblue]315, 15[/color]);
//background color
$bg = imagecolorallocate($im, 255, 255, 255);
//textcolor
$textcolor = imagecolorallocate($im, [color=brown]0, 0, 0[/color]);
//enter text in image
imagestring($im, 3, 0, 0, "DiGiTaLlY Signed by [color=indigo]Mahir[/color] using <?php> powers", $textcolor);
//show the image
imagepng($im);
?>

C.notes
1.text in dark red is your username
2.text in dark blue is the size of the image
3.text in indigo is the hex of the text color
D.preview


Last edited by mahirharoon on Sun Jan 20, 2008 7:26 pm; edited 6 times in total
mtorregiani
Great tutorial man, thanks for sharing.
I knew of something like this before, it was for dynamic images...
mahirharoon
mtorregiani wrote:
Great tutorial man, thanks for sharing.
I knew of something like this before, it was for dynamic images...

can you give a link
Star Wars Fanatic
Not to bad, but use quote tags, not code tags.

I myself have coded a signature system for pulling information from a MMORPGs highscores and displaying it in a nice image.
While my code is kinda slow, it does get the job done, and I'm working on a recode right now.
mahirharoon
ok , thanks
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.