Page 1 of 2
Simultaneous download of files
Posted: Tue Jun 19, 2007 8:30 pm
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
Posted: Tue Jun 19, 2007 8:33 pm
by feyd
More details please....
Simultaneous download
Posted: Tue Jun 19, 2007 8:38 pm
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.
Posted: Tue Jun 19, 2007 8:43 pm
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.
Posted: Tue Jun 19, 2007 8:57 pm
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.
Posted: Tue Jun 19, 2007 8:59 pm
by feyd
What do you mean by multiple download windows?
Posted: Tue Jun 19, 2007 9:03 pm
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.
Posted: Tue Jun 19, 2007 9:05 pm
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.
Posted: Tue Jun 19, 2007 9:07 pm
by superdezign
Sounds like browser issue.
Posted: Tue Jun 19, 2007 9:11 pm
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.
Posted: Tue Jun 19, 2007 9:13 pm
by superdezign
What, exactly, is happening to the downloads? Not opening? Waiting? What?
Posted: Tue Jun 19, 2007 9:15 pm
by peterhck
when you click on the second link to download it waits until the first is finish then to start the second.
Posted: Tue Jun 19, 2007 9:27 pm
by feyd
In all browsers? If so, talk to your host. If not, check your browser.
Posted: Tue Jun 19, 2007 9:34 pm
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.
Posted: Tue Jun 19, 2007 10:40 pm
by superdezign
Are the links on the same page...? This is sounding strange.