...

View Full Version : readfile disables browsing the site?



boeing747fp
03-03-2009, 01:55 AM
what would cause it so that when i do a force-download with readfile() it makes it so users cannot go to other pages on the site [until the download is done] even if i make the downloader open in a new window?

abduraooft
03-03-2009, 09:22 AM
Sorry... I misread the post... :-(

boeing747fp
03-03-2009, 06:01 PM
you think what's pretty impossible? i asked "what would cause it...." i dont see how "i think it's pretty impossible" is an answer to my question...

eu4ria
03-03-2009, 11:47 PM
There may be a limit on the server for the maximum simultaneous connections per client. While downloading the file they are using a connection, as soon as it is done they are able to open a new connection back to the server.

Fou-Lu
03-04-2009, 12:00 AM
There may be a limit on the server for the maximum simultaneous connections per client. While downloading the file they are using a connection, as soon as it is done they are able to open a new connection back to the server.

This is also what I would assume. Its a limitation imposed by the web service, not by PHP.
HTTP is in itself stateless, so it wouldn't realize that the user is the same. If you're on a shared host, specifically a free one, they may be saving themselves throughput by imposing 1 connection limitations per domain. If you're paying for it, I'd find a new host (if this what's causing the problem).
I've never had a problem with PHP causing a conflict like this before. Even CGI and CLI versions will spawn new processes. And if you're on *nix host, even ram won't be an issue; I used to host several sites on a 32MB optimized web server, and I had better throughput than I do now on my windows server.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum