Current location: Hot Scripts Forums » Programming Languages » PHP » Tracking a download


Tracking a download

Reply
  #1 (permalink)  
Old 06-26-04, 06:50 PM
~Fyre~ ~Fyre~ is offline
New Member
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Tracking a download

I currently host a bunch of RM and RAM files for one of my friends but recently someone was hotlinking to them and I ended up with over 4000 users downloading the ~35 meg files at once... Needless to say, Level 3 (the hosting company's ISP) got kinda ticked cuz it slowed down a lot of stuff. Bandwidth wasn't a problem, it was just the amount of users at once. I decided to make a system that only allows a limited number of users to download files at once. I'm going to do it by adding a row into a MySQL DB when a user begins to download a file with information on the file and its size and stuff so that I can provide an estimated wait time for the people in line. The thing I'm stuck on is how to execute a PHP script when the download is completed or cancelled. I need to do this in order to update the database to reflect the number of users downloading the file. Basically, I need a way to track the download while it is going on and determine if the user has cancelled it or if the download has completed. I need to do this using PHP or using some other language that can directly call a PHP script to execute though.

Thanks in advance.

Last edited by ~Fyre~; 06-26-04 at 06:59 PM.
Reply With Quote
  #2 (permalink)  
Old 06-26-04, 06:56 PM
landboy landboy is offline
Newbie Coder
 
Join Date: May 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Ask the user for connection then track how long (est it would take for them to dl.)
Reply With Quote
  #3 (permalink)  
Old 06-26-04, 07:00 PM
~Fyre~ ~Fyre~ is offline
New Member
 
Join Date: Jun 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by landboy
Ask the user for connection then track how long (est it would take for them to dl.)
What about lag spikes etc... I need a definate way to see when the download is done/cancelled. I see what you mean, but if some site asked me my connection... I'd say DSL regardless of how many other files i was dling in the background and how many files my brother was uploading... both of which slow the connection speed a ton.

Last edited by ~Fyre~; 06-26-04 at 07:16 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autoresponders, Lists, Ad Tracking, Affiliate Tracking & Product Delivery all in one Iceblaze Script Requests 0 05-10-04 03:37 AM
PHP download... niceguyonline Script Requests 3 03-06-04 05:41 PM
download script ilker Script Requests 2 01-02-04 07:48 PM
need download tracking script russell_writer Script Requests 4 08-14-03 07:19 AM
Need download Manager script Dead Socket General HotScripts Site Discussion 4 07-22-03 03:37 AM


All times are GMT -5. The time now is 05:06 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.