download
http://random.thedt.net/imagemagick.class.phps rename it as a php file and upload it somewhere on your server then run it.
it should create a file called "texttest.gif" which will look like
if that works tell me and ill keep working on getting your signature to work
edit:
pfft i went ahead and made one that works.
should update every 60sec.
also your christmas.gif must be in the same directory
the font and stuff can be changed but i didnt know what you wanted.
code:
<?php
if(file_exists('signature.gif')){
$modifiedTime = time() - filemtime('signature.gif');
if($modifiedTime<60){
outputFile();
exit;
}
}
$to_go = mktime(0, 0, 0, 12, 25, 2005) - time();
$days = ceil($to_go / (60 * 60 * 24));
$hours = ($to_go / (60 * 60)) % 24;
$minutes = ($to_go / 60) % 60;
$seconds = $to_go % 60;
$str = $days . " " . ($days == 1 ? "day" : "days") . ", " . $hours . " " . ($hours == 1 ? "hour" : "hours") . ",";
$str2 = $minutes . " " . ($minutes == 1 ? "minute" : "minutes") . " and " . $seconds . " " . ($seconds == 1 ? "second" : "seconds");
$cmd = <<<eot
convert christmas.gif -coalesce -gravity northwest -fill black -draw "text 325,40 '$str'" -draw "text 325,50 '$str2'" -draw "text 325,60 'till christmas'" -deconstruct signature.gif
eot
;
exec($cmd);
outputFile();
function outputFile(){
header("Content-type: image/gif");
echo file_get_contents('signature.gif');
}
?>
example of code... (mine updates every 240sec though)