Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Checking if user is currently downloading a file
Old 10-21-2010, 01:17 AM Checking if user is currently downloading a file
Skilled Talker

Posts: 83
Trades: 0
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.
Smudly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-22-2010, 07:18 AM Re: Checking if user is currently downloading a file
Skilled Talker

Posts: 52
Trades: 0
What's the programmation language used by your site script? php? asp?
webmastertalker is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 10:47 AM Re: Checking if user is currently downloading a file
Skilled Talker

Posts: 83
Trades: 0
is this not a php forum? :P hehe
Smudly is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 01:50 PM Re: Checking if user is currently downloading a file
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTTP is a disconnected protocol so you can only tell if a resource (file) was requested.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-22-2010, 06:41 PM Re: Checking if user is currently downloading a file
Skilled Talker

Posts: 52
Trades: 0
Quote:
Originally Posted by Smudly View Post
is this not a php forum? :P hehe
hehe I was sleeping ...

Anyway so why don't you provide the files to download trought a php gataway?

Let's say on you site visitor waits 30 seconds... then the download link should show in this form: yoursite.com/getfile.php?id=32323 ... in the header of this getfile.php you put the redirect to the real file resource relative to id 32323... and in this getfile.php you can also put a simple counter connected to your mysql database...

If do you need a working example hit me!
webmastertalker is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 06:46 PM Re: Checking if user is currently downloading a file
Crimson's Avatar
Skilled Talker

Posts: 56
Name: Connor
Location: United States
Trades: 0
Rapidshare does this, so I suppose it's possible. At least, I've heard that Rapidshare does this, from other people, I don't download things from that website myself, obviously..
__________________

Please login or register to view this content. Registration is FREE

I solve code problems, browser compatibility (including IE 6), Wordpress trouble, the works.
Crimson is offline
Reply With Quote
View Public Profile Visit Crimson's homepage!
 
Reply     « Reply to Checking if user is currently downloading a file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22698 seconds with 12 queries