|
-
Impressive Click
[Help] Game Counter
I was wondering that could check the statistics of your game by setting up a counter that everytime the game is loaded, it adds a number to a counter that can be viewed by the creator of the game.
This way when they want to view how many times their game has been played they can just open up that page and view the number. Is this possible? Has it been done before? Would you use php to code something like this?
-
Hype over content...
Do you mean a hit counter ? If so they're pretty easy to code, but if you don't want to get your hands dirty with php yourself, there are about a zillion open source counters on the net.
If you want the counter integrated with Flash, here's an excellent site: http://www.flash-db.com/
dunno if it's got a hit counter, but it covers all things to do with Flash and server side communication.
Squize.
-
Impressive Click
thanks, yea I meant a hint counter but I tried to be more specific because there are some counters that only show how many times you have played not how many times worldwide.
-
Senior Member
Our Prize Pro flash game uses a sort of 'flash hit counter' to see how often the game has been played each day. It's coded in PHP, and stores all the data in a text database file. It's pretty easy to code, and it's nice to see how many people play the game each day. You can check out the main game at http://www.flashisland.net/prize_pro_scratch.php and the game stats at http://www.flashisland.net/games/scr...demo_stats.php.
-
Impressive Click
can you give me the code? Thats exactly what I need.
-
Senior Member
Unfortunately I can’t give out the code for the game counter unless you’re willing to purchase the Prize Pro engine.
Basically it works the same way as a hit counter. When a person plays the game, a PHP script is called that totals up the plays that day. It should be pretty easy to take a regular hit counter script and convert it to be used in a flash game.
-
Impressive Click
if you can't help me than why did you tell me?
-
Senior Member
I'm sorry that I can't give out the source code that was used, but I can outline how it was done a little more if you want to PM or e-mail me. I answered you because of your original request:
Is this possible? Has it been done before?
Just wanted to let you know that it is possible with PHP, and that it's not too hard to do.
-
Senior Member
I use a 100% free perl script that does everything you need for polling (do a search on polling for more info). It is flash based, and even comes with an example counter that is exactly what you need.
Download it here: http://www.kessels.com/FlashDB/
-
@ dogtown08: that looks good, but i've never used perl b4, is it similar to php (i don't think my host runs perl)?
-
Impressive Click
do mosts host supppot php and/or pearl?
-
Senior Member
I dont know any PHP, but if your host supports PHP, they probubly support perl. Plus, you dont need any knowledge of perl to set it up if you know some PHP. Read the instructions on the link I sent you, they are pretty clear.
-
Impressive Click
yea, I want to use that but I don't have access to my cgi-bin with the host I am currently using. Does anyone know of any free hosting sites that supports php or pearl?
-
i'm not sure if i'm allowed to post this but we'll see, http://www.100webspace.com/ i used for a while, but it doesn't allow one function of php, to mail to ppl for a forum(or at least i couldn't get it to work) so i switched from them
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|