Simultaneous download of files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Simultaneous download of files

Post by peterhck »

Hi,

I am a newbie to php and I was trying out file download feature but I am running into some issues. The page I created used to allow simultaneous download but for some reason it doesn't any more. Can any one help me out in this area.

Peterhck
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

More details please....
peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Simultaneous download

Post by peterhck »

I have a page with links to files that I create dynamically. The user clicks on the link to download the file. The user was able to kick off many downloads at once in the past but for some reason it doesn't work any more. Is there some setting I need to change. The strange thing is I didn't even know the page did that so I have no idea what I changed.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If these files aren't being served by PHP, PHP doesn't care or have control. It's likely something on your server.
peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Post by peterhck »

First off I would like to thank you for replying to my post. ONe question though is if PHP is handling the download by reading the data from the server and out putting it to the user what could prevent the user from getting multiple download windows.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What do you mean by multiple download windows?
peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Post by peterhck »

when you click on the link you get the save dialog box then you choose the download location and start the download. while the first file is downloading the user was able to click on a next link and get a new save dialog box to begin a next download while the current one was in process. Before the user could do this but now they have to wait until the first file finishes before kicking off a next download.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Is this affecting all browsers? If not, it's a browser "problem," in all likelihood. The problem being that browsers are normally set to limit the number of active connections to a server so as to limit the bandwidth they are taking from the server and avoid being banned by the server's proprietors for excessive bandwidth consumption.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Sounds like browser issue.
peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Post by peterhck »

The main point is that it was working before . The only thing I did was move to a bigger hosting plan but I never really touched the code that did the download.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

What, exactly, is happening to the downloads? Not opening? Waiting? What?
peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Post by peterhck »

when you click on the second link to download it waits until the first is finish then to start the second.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

In all browsers? If so, talk to your host. If not, check your browser.
peterhck
Forum Newbie
Posts: 9
Joined: Tue Jun 19, 2007 8:22 pm

Post by peterhck »

Yes its all browsers. You would see the page processing the request but it would not output the file until the first download is finished.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Are the links on the same page...? This is sounding strange.
Post Reply