FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » counting the plays
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: counting the plays [message #183213 is a reply to message #183209] Sat, 12 October 2013 17:44 Go to previous messageGo to previous message
Richard Damon is currently offline  Richard Damon
Messages: 58
Registered: August 2011
Karma:
Member
On 10/12/13 10:33 AM, richard wrote:
> I need to keep track of how many plays any tune gets.
> Like the way youtube does.
> But played, not just viewed.
> The counter gets added to when the play button is clicked.
> The player is flash based.
>
> Any way of doing this?
>

Since the player is flash based, you would need to add something to the
flash code to trigger the increment.

The other option would be something on the server side checking the logs
for actually serving the file. I suppose you could put a proxy page that
the player accesses to get the file written in php to do the increment
and then send the file (assuming it is served via http/https) but that
would add a lot of overhead to your server, so I wouldn't suggest it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't change upload_max_filesize
Next Topic: about php 5.4.20version
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 05 02:25:40 GMT 2024

Total time taken to generate the page: 0.04885 seconds