It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
Originally posted by Striker122
cool Dulcimer. I wish I had one of those for my sig.
$TextFile = "counter.txt";
$Count = trim(file_get_contents($TextFile));
$FP = fopen($TextFile, "r");
$Count=fgets($FP, 10240);
fclose ($FP);
settype($Count, "integer");
$Count++;
if ($FP = fopen ($TextFile, "w"))[
fwrite ($FP, $Count);
fclose ($FP);
]
$image = "counterpic.PNG";
$im = imagecreatefrompng($image);
$font = 'arb.ttf';
$green = ImageColorAllocate ($im, 0, 128, 0);
$black = imagecolorallocate ($im, 0, 0, 0);
$hit = "$Count";
imagettftext ($im, 8, 0, 8, 20, $black, $font, "Dulcimer's Posts Viewed ");
imagettftext ($im, 8, 0, 5, 40, $green, $font, " $hit Times");
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);