Jump to content

Recommended Posts

I have a page called download.php that takes a GET variable such as 'album_track=344' and allows the user to download that specific file (after a query to the database for the file location) through a forced download (theres no actual page loading, the php file simply loads the headers and the browser takes over from there).

This is a way for me to hide the actual file location as well as perform some record keeping tasks. The issue is that apache/php only allow one download at a time from the specific connection. For example, you select one song to download and it pops up the "Download" box and begins downloading and then you select another song to download, the second prompt box won't popup until the first song has completed.

Perhaps it's because the session is trying to use the download.php script when it's occupied already for that browser connection?

Is there some way to fix this? It's rather annoying to limit it to only one song at a time.
[!--quoteo(post=381652:date=Jun 8 2006, 06:59 PM:name=Mr. Awesome)--][div class=\'quotetop\']QUOTE(Mr. Awesome @ Jun 8 2006, 06:59 PM) [snapback]381652[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Is there some way to fix this? It's rather annoying to limit it to only one song at a time.
[/quote]

Did you try using

[code]
header("Location: http://file location");
[/code]

to redirect them to the download? This might let the file close and allow more than one d/l
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.