Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-03-2009, 12:55 AM   PM User | #1
boeing747fp
Regular Coder

 
Join Date: Oct 2003
Posts: 599
Thanks: 1
Thanked 1 Time in 1 Post
boeing747fp is an unknown quantity at this point
readfile disables browsing the site?

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?
boeing747fp is offline   Reply With Quote
Old 03-03-2009, 08:22 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Sorry... I misread the post... :-(
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

Last edited by abduraooft; 03-04-2009 at 04:33 AM..
abduraooft is offline   Reply With Quote
Old 03-03-2009, 05:01 PM   PM User | #3
boeing747fp
Regular Coder

 
Join Date: Oct 2003
Posts: 599
Thanks: 1
Thanked 1 Time in 1 Post
boeing747fp is an unknown quantity at this point
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...
boeing747fp is offline   Reply With Quote
Old 03-03-2009, 10:47 PM   PM User | #4
eu4ria
New Coder

 
Join Date: May 2006
Posts: 81
Thanks: 0
Thanked 11 Times in 11 Posts
eu4ria is an unknown quantity at this point
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.
eu4ria is offline   Reply With Quote
Old 03-03-2009, 11:00 PM   PM User | #5
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Quote:
Originally Posted by eu4ria View Post
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.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:25 AM.


Advertisement
Log in to turn off these ads.