Quote:
Originally Posted by Elk
there are no images in it :o also the images are png only as far as i can read
|
Umm... Just name your image "image.jpeg".
PHP Code:
<?php
$filename = "./counter";
$image = imagecreatefromjpeg( "./image.jpeg" );
$offset = array(x=> 25,y => 50);
$count = file_get_contents( $filename );
file_put_contents( $filename, ($count + 1) );
$textcolor = imagecolorallocate( $image, 0, 0, 0); // Black
imagestring( $image, 5, $offset['x'], $offset['y'], $count, $textcolor );
header("Content-type: image/png");
imagepng( $image );
?>
I didn't check for font's themselves... But this
should do. ( It works too. )