![]() |
Can't load multiple PHP pages at once
I have a site that is supposed to serve files via a PHP page. If this PHP page is serving a file (ie. a 20MB file), nothing else will load at the same time. It waits for the current file to finish loading before loading the next one (and also means the site doesn't work in another tab). Is there some way to fix this? Thank you.
|
how about open 2nd file in another browser ? can download 2 files at the same time ?
|
Quote:
I also have a friend that confirms the issue |
please PM the website's domain name and brief the test steps, I test in my browser.
|
it's PHP script which limit the downloads.
looks like the PHP script use the session cookie to archive this goal. in firefox, open a tab, can access a URL to download a 50M file, when open 2nd tab, access same URL, it'll wait until 50M file download completed. if open the URL in another browser, it starts downloading without wait. then back to firefox, open firebug+firecookie, delete all cookies, then can open 2nd tab to download same file at the same time. so it's not relating to web server, but PHP script do it purposely. |
Quote:
I am a bit unclear as to how to use this header. In the PHP file that processes/handles the download, should I simply replace all of my current headers to force the download and just use header("X-LiteSpeed-Location: /path/to/my/file"); Thanks |
just replace 'Location: ...' with 'X-LiteSpeed-Location: /path/to/my/file'.
|
Quote:
http://anyup.me/v/uWwBOYXE Would I replace readfile with X-LiteSpeed-Location? |
should be, and you can comment out line 62-73.
|
Quote:
|
| All times are GMT -7. The time now is 06:05 PM. |