I have a big problem with this one (or maybe it isnt that big).
I made a few scripts that works like a download counter and generates image which shows how many times has the file been downloaded. It all works fine but the problem is that I cant post it on any forums as most of them dont allow to put dynamic pages in [ img ] tags. So I thought I could just use .htaccess but when I opened notepad I didnt know what to write as the file creates more then one image.
http://jext.vectored...image.png?&id=6 - thats the link to the file which generates the image(I renamed image.php to image.png cuz I hoped it would fix the problem...but it didnt)
http://jext.vectored...m/downloads.php - file that reads downloads from database and lists them...
So..my question is how to make it so I can use the image in forums etc. ?
P.S.
Heres the code for the image.png
<?php
include("config.php");
$getdownloads = mysql_query("SELECT * from downloads where id='$id'");
while($row = mysql_fetch_assoc($getdownloads))
{
$image = "signature.png";
$im = @ImageCreateFromPNG($image);
$blue = ImageColorAllocate ($im, 29, 18, 158);
ImageString($im, 3, 45, 15, "$row[title] has been downloaded", $blue);
ImageString($im, 15, 135, 30, "$row[count]", $blue);
ImageString($im, 3, 98, 43, "times already", $blue);
header("Content-Type: image/png");
ImagePNG($im,'',100);
ImageDestroy ($im);
}
?>
