I'm making a php script that generates a dynamic PNG. The image itself is a countdown to the release of a new theme for UnSyntax Software.
The script itself works fine (although I still have to add the ACTUAL countdown timer) and the result is at http://www.unsyntax.alex10819.org/phpbb/Signature/TetraCounter.php
Code:
Problem is, I don't know how to get an actual .png to use in my forum signatures. Any help?
The script itself works fine (although I still have to add the ACTUAL countdown timer) and the result is at http://www.unsyntax.alex10819.org/phpbb/Signature/TetraCounter.php
Code:
<?php
header("Content-type: image/png");
define('IN_PHPBB', true);
$site_root_path = '../';
$phpbb_root_path2 = '';
$phpbb_root_path = $site_root_path . $phpbb_root_path2;
$pic = imagecreatefrompng("Tetra.png");
$stat = imagecreatefromgif("track.gif");
$w = 15;
$h = imagesy($stat);
imagecopy($pic,$stat,215,20,0,0,$w,$h);
$m = date('m');
$d = date('d');
$M = 8-$m;
$D = 31-$d;
$white = imagecolorallocate($pic, 255, 255, 255);
$red = imagecolorallocate($pic, 255, 0, 0);
$green = imagecolorallocate($pic, 0, 255, 0);
imagestring($pic, 3, 190, 5, "ETA: ".$M." months ".$D." days", $white);
imagestring($pic, 3, 190, 20, $w."%", $green);
imagepng($pic);
imagedestroy($pic);
imagedestroy($stat);
?>
Problem is, I don't know how to get an actual .png to use in my forum signatures. Any help?