icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Large downloads?

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old December 19th, 2004, 9:46 AM   #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
move3rd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 19th, 2004, 9:54 AM   #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
Ghostbone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 19th, 2004, 11:05 AM   #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
move3rd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 19th, 2004, 11:14 AM   #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
Ghostbone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 19th, 2004, 2:45 PM   #5 (permalink)
Destroyer of Evil Robots
Excelling Contributor
 
tch3's Avatar
 
Joined in Oct 2003
Lives in Atlanta, GA
760 posts
Gave thanks: 17
Thanked 9 times
I think you'll want to send email to sales. You might need special arrangements to do something like that.

Clair
__________________
clair
http://tch3.com
(dedicated)
tch3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 19th, 2004, 6:30 PM   #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...
__________________
Website : max-worlds.net
Shared Server : Pipe
MadMax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 20th, 2004, 4:00 AM   #7 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
what about using bit torrent or something? distribute it out so it doesn't always have to come from your site...
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 20th, 2004, 4:29 AM   #8 (permalink)
Dark Matter
Guest
 
n/a posts
Quote:
Originally Posted by djsckizo
what about using bit torrent or something? distribute it out so it doesn't always have to come from your site...
but not everyone knows what bit torrent is. Prime example ask your mom or next door neighbor what it is. Come on now, stop thinking like that and realize if you will...
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 20th, 2004, 2:55 PM   #9 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
Quote:
Originally Posted by oc12
but not everyone knows what bit torrent is. Prime example ask your mom or next door neighbor what it is. Come on now, stop thinking like that and realize if you will...
Don't be like that.. It could be as simple as offering a normal download, and a BitTorrent file. That way people that don't know, can do it the way they're comfortable, and the "gurus" can do it the BitTorrent way.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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