|
Post by stinky666 on Dec 12, 2004 0:59:55 GMT -5
<?php ob_start(); Header("Content-Type: image/jpg"); $im = @ImageCreateFromJPEG ("http://img.photobucket.com/albums/v176/aftervisions/bg.jpg"); if($im) { $file = 'sig.txt'; $count = file_get_contents($file); $handle = fopen($file,'w+');
$count++;
fwrite($handle,$count); fclose($handle);
$font = "eurof35.ttf"; $textcolor = imagecolorallocate($im, 73, 97, 128); ImageTTFText($im, 20, 0, 85, 29, $textcolor, $font, "This sig has been viewed: " . $count . " times" ); ImageJPEG ($im); } ?>
Would i work it the same way as that other one?
|
|
|
Post by Bradley on Dec 12, 2004 11:47:16 GMT -5
Do you know what this does? It's a hit counter for your sig.
|
|
|
Post by stinky666 on Dec 13, 2004 10:10:04 GMT -5
I know what it is, but how wud i work it? Wud i save it as a sig.txt or something, then upload it to a php host, or what?
|
|
|
Post by Bradley on Dec 13, 2004 14:05:49 GMT -5
Um... try just uploading it and running it. If it doesn't work create the text file and enter a 1 into it, only a 1.
|
|