Another php counter prob -.-

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
I give you 30 credits if you find out why the count aren't showed

PHP:
<?php 

if(file_exists("count.dat")) 
{ 
    $fp = fopen("count.dat", "r"); 
    $count = fgets($fp, 1024); 
    $count++; 
    fclose($fp);     
    echo "<strong><font color=red face=arial size=3>$count</font></strong> has played this game "; 
    $fp = fopen("count.dat", "w"); 
    fwrite($fp, $count); 
    fclose($fp); 
} 

else 
{ 
    echo "<strong><font color=red face=arial size=3>CREAE count.dat FILE, Change the file permission  for count.dat file to                         646(RW-,R--,RW-).</font></strong>" ;
}

?>

It just show "has played this game"
 

satheesh

New Member
Messages
883
Reaction score
0
Points
0
It correctly worked on my computer.
Change the permission of the "count.dat" file.
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Sry but I've already fixed it. But I need another counter. I will give you 100 credits if you make it. In the file counterg.php will the counter be. In every page I should include it using the php INCLUDE statement. I need the counter to give the pages IDs so it doesen't show the same count on every page.
 

satheesh

New Member
Messages
883
Reaction score
0
Points
0
Sorry,I don't understand your message.
Please explain more.
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Go to my page at http://jagf.pcriot.com/flash. It is a flash gaming site. Every game should have a hit counter that will record how much the game has been played. like game 1 has been played 2 times and game 2 has been played 1 time. All the counter scripts I have found show 3 here. I want it to show only the hits for that page.
 
Top