I was bored this afternoon so I randomly made a script that I could use as a signature. It records when the signature is viewed and then prints when it was onto the image. If you want the code here it is, if you know what your doing you'll be able to work out how to change things on itIf your dumb look in my signature!
PHP Code:<?php
header("Content-type: image/png");
$datafile = "last-seen.dat";
$loadfile = fopen($datafile, 'r');
$data = fread($loadfile, filesize($datafile));
fclose($loadfile);
$im = imagecreatefrompng("template.png");
$textcolour = imagecolorallocate($im, 255, 255, 255);
$font = "verdana.ttf";
imagettftext($im, 10, 0, 140, 7, $textcolour, $font, $data);
$writing = fopen($datafile, 'w');
$towrite .= date('d');
$towrite .= " ";
$towrite .= date('F');
$towrite .= " ";
$towrite .= date('Y');
$towrite .= " at ";
$towrite .= date('H');
$towrite .= ":";
$towrite .= date('i');
$towrite .= ":";
$towrite .= date('s');
fwrite($writing, $towrite);
fclose($writing);
imagepng($im);
?>





If your dumb look in my signature!
Reply With Quote


