Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-13-2007, 05:38 AM   PM User | #1
runitzme
New to the CF scene

 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
runitzme is an unknown quantity at this point
Download Queuing?

Hi i host a download site for music and my site's been crashing because my host can only support up to 150 simultaneous connections. So i figured I do something like SendSpace where if the download slots are full, you have to wait. I was wondering if anyone has any idea on how to do this?
runitzme is offline   Reply With Quote
Old 03-13-2007, 11:37 AM   PM User | #2
timgolding
Senior Coder

 
timgolding's Avatar
 
Join Date: Aug 2006
Location: Southampton
Posts: 1,466
Thanks: 90
Thanked 110 Times in 109 Posts
timgolding is on a distinguished road
There are different ways to achieve this. You could put all the music files in a restricted folder then when someone wants dl a song you could move it temperarly to a public folder. You could store their users session ID or a randomly created hash to a que. This hash/ ID would be the name of the file to download. the dowloads would have a time to live.
__________________
You can not say you know how to do something, until you can teach it to someone else.
timgolding is offline   Reply With Quote
Old 03-13-2007, 08:42 PM   PM User | #3
runitzme
New to the CF scene

 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
runitzme is an unknown quantity at this point
thanks for your reply timgolding, but i would like to have the download taken off the slot once the download is finished....not have a timed expiration link. And i would also like to prevent simultaneous downloads =/
runitzme is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:12 AM.


Advertisement
Log in to turn off these ads.