your counter.dat file is missing in ur dir
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..Many thanks Tz
your counter.dat file is missing in ur dir
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">[Only registered and activated users can see links. Click Here To Register...]</span></span>
[Only registered and activated users can see links. Click Here To Register...]
thanks, i gathered that much but dont know how to create a filefor it
just open notepad then save as counter.dat then upload
make a new file and call it count.txt and cmod it to 777 and it will count hits for you.Code:echo "Site Hits: "; $fp=fopen("count.txt","a+"); fputs($fp,"1"); fclose($fp); $fp1=filesize("count.txt"); echo "$fp1";
Thank you, I will give that a go,..one other thing what doe cmod77 mean ?
have you worked it out yet?.. lol
or try this.
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
No not yet![]()
$counter_array = file("counter.dat");
$all = $counter_array[0]+1;
$fp = @fopen("counter.dat","wb");
@fputs($fp,$all);
@fclose($fp);
echo '
Total hits: '.$all.'
';
its working fine.. you can upload this.... hope your prob will be solve after this
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks