| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Apr 2004
67 posts
Gave thanks: 0
Thanked 0 times
|
Large downloads?
I’m looking into offering .zip archives of music releases in .mp3 format as downloads on my site. Each .zip is between 80 and 200mb. Offering such large files could create a strain on the server so I was wondering if anyone could give me some advise on the best way to work the download system.
I was thinking of writing a php script that would assign each download a time slot so I could keep control over what is being downloaded and when. I just have a few questions. Would the server be able to cope with more than 1 download at a time? Would the server be able to cope with continuous downloads if using a ‘time slot system’? -------------------- Just to note, all music hosted on my site was acquired directly from the artists and I have permission to distribute their music in this way.
__________________
Server: pass58
|
|
|
|
|
|
#2 (permalink) |
|
I <3 Surpass!
On a golden path...
Joined in May 2004
Lives in Netherlands
Hosted on Pass 12, Supras
417 posts
Gave thanks: 0
Thanked 0 times
|
Hi Move3rd,
What i suggest is a script that limits the amount of downloads to say 30-50? At one given time (which you would probably have less than that..?) Also you can have a script that will limit the amount of downloads per IP which you could set to 1. (I remember there being something like this with ASP however i'm sure there's also one in PHP or something similar...CGI?) Sorry i'm not much help on the matter, GB.
__________________
MI6Labs.co.uk - Pass 12 KGBLabs.com - supras |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Apr 2004
67 posts
Gave thanks: 0
Thanked 0 times
|
Thanks for the input Ghostbone
30-50?? I really didn’t think shared servers could cope with that much on a single account. Was that a rough guess or are you sure of this? I was hoping to be able to offer about 4 or 5 max simultaneously but was doubtful.
__________________
Server: pass58
|
|
|
|
|
|
#4 (permalink) |
|
I <3 Surpass!
On a golden path...
Joined in May 2004
Lives in Netherlands
Hosted on Pass 12, Supras
417 posts
Gave thanks: 0
Thanked 0 times
|
4-5...That should definately be no problem then! It was a rough estimate however i'm sure it would be ok near the high 25-30's.
Just to make sure you could try e-mail: support[at]surpasshosting.com and asking them ![]() GB.
__________________
MI6Labs.co.uk - Pass 12 KGBLabs.com - supras |
|
|
|
|
|
#6 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Canada
Hosted on Pipe
141 posts
Gave thanks: 4
Thanked 3 times
|
I think you should do a script that either check the connection of the user (don't ask me how) or ask the user's connection. Here is why, shared servers are on 10mbits connection (if I remember right). Although, you want to be good neighbour so you have to limit the speed to something like 4mbits (with a script)? It also depends on how fast is the connection of the client. If you have 5 clients on 56k, I doubt the server will be affected, if you have 5 clients on fast broadband now that may be a problem.
If you do a script that check the speed of the client, you will be able to guess how long it will take them to download the file and how much bandwidth they are taking from the server. You could use a table (database) that record the time the download should start, finish and the speed used by the client. Every time someone clicks on the link to download the file, a script could clear the entries in your database for the finished downloads. Just after, check if the new client can download the file. (Not too many connections, downloaders don't take too much bandwidth) This is kind of complicated for some MP3 , you better ask Surpass if you can do it before you start writing any code. They may have a better solution for you!Ok, break time, my brain and my fingers are on fire... ![]() |
|
|
|
|
|
#8 (permalink) | |
|
Guest
n/a posts
|
Quote:
|
|
|
|
|
#9 (permalink) | |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
|
Quote:
|
|
|
|
|