I added this code to my login page $counter_array = file("counter.dat"); $all = $counter_array[0]+1; $fp = @fopen("counter.dat","wb"); @fputs($fp,$all); @fclose($fp);
echo ' Total hits: '.$all.' ';
But got the following error
Warning: file(counter.dat): failed to open stream: No such file or directory in /home/******/public_html/login.php on line 21
Can anyone tell me how to fix it please External image (may be gone)..Many thanks Tz