Hi,
I'm using a code that a friend coded for me. It's a signature counter but I can't get it to work. Can anyone help explain it to me and tell me if there's any errors? Thanks a million, here's the code:
<?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);
}
?>
JamesRP