Smudly Posted October 21, 2010 Share Posted October 21, 2010 Hi, I'm trying to figure out the best way to determine if a user is currently downloading a file from my website. The way my site works, is the user waits 30 seconds and views an ad. After the timer is up the download becomes available. I heard that I could probably use a timestamp or something of the sort. I've read up on it but not sure how I could go about this. Link to comment https://forums.phpfreaks.com/topic/216450-checking-if-user-is-currently-downloading-a-file/ Share on other sites More sharing options...
OldWest Posted October 25, 2010 Share Posted October 25, 2010 So you're the one with those annoying ads! I think I understand this correctly. 1) User views ad. 2) Ad displays for 30 seconds. 3) Download option starts. 4) User leaves page! (joke).. Not sure about tracking the download real-time, but getting a start and end download time should not be too difficult with date() and time() php functions. These values could be stored in a table, and you could be email notified or otherwise when the download completed or started. Link to comment https://forums.phpfreaks.com/topic/216450-checking-if-user-is-currently-downloading-a-file/#findComment-1126066 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.