could soome one help me please i have this counter script but im trying to change it so i can display pictures for the numbers but i cant work out how to get the the first, second and third numbers, i think you use something like $num{0} to do it but i cant get it to work.


//First create a file to store the hits. Make sure this file has write permission
$counternum = "num.txt";
//Open the file and write the current hits plus one.
function displayCounter($counternum) {
$fp = fopen($counternum,rw);
$num = fgets($fp,9999);
fclose($fp);
$fp = fopen($counternum,w);
$num += 1;

fputs($fp, $num);
fclose($fp);
}
thanx trials