I need a free phpscript that counts how many people played games on my game site. Anyone know where i can get this? and is it possible to use PHP script like this with no database?
There are no scripts you need. Write it for yourself. For example, when user connected to the game, send the "message" to some php script which counts it. Like this: flash-games.swf onClipEvent (load) { loadVariables("http: //supersite.com/count.php", this, "GET"); } Into count.php insert some counter: $filename = "counter.dat"; $handle = fopen($filename, "r"); $count = fread($handle, filesize($filename)); fclose($handle); $handle = fopen($filename, 'a'); fwrite($handle, ++$count); fclose($handle); PHP: It is code only for example...
Some more information! Tutorial - Hit Counter using PHP & Flash http webwasp.co.uk/tutorials/b39-hit-counter/index.php
I would just put a sql query to add to a count in the database everytime the page loads. You can even have it insert the game title and game id to narrow down by game, somthing like: mysql_query('UPDATE `games` SET `playcount`=(playcount+1), `title`="'.$title.'" WHERE `gid`="'.$gid.'"') or die(mysql_error());