Hi,
I'm having a problem with loading a page full of thumbnails.
I'm useing this to load each thumbnail.
header("Content-type: image/jpeg");
readfile ($dir."/thumbs/".$filename );
but, if your connection to the server is too fast (eg, your on a lan or
the same ISP with broadband) the server will display a hand full of them
and then the rest won't display, and then if you try to load another
page within a couple of seconds, the server gives you the 403 page
"Access Denied".
But, when I load a page full of thumbnails that are direct links to the
files it's fine. but when useing this script to read it seems to make
the server pass-out momentarily. give it half a minute and it will
server pages again.
I have watched the server's CPU useage and memory (as it loads) and all
seems fine.
I have noticed that the problem goes if you run a squid proxy on the
same box and it doesn't have trouble for people with slower connection
eg. dial up modem.
Anyone have any ideas what could be set wrong? buffer size maybe? do I
have to close this function off at all?
Any help much appriciated, I've been scraching my head on this for a
couple of months now.
J.
btw - I have asked on the apache conf newsgroup with no luck.
I'm having a problem with loading a page full of thumbnails.
I'm useing this to load each thumbnail.
header("Content-type: image/jpeg");
readfile ($dir."/thumbs/".$filename );
but, if your connection to the server is too fast (eg, your on a lan or
the same ISP with broadband) the server will display a hand full of them
and then the rest won't display, and then if you try to load another
page within a couple of seconds, the server gives you the 403 page
"Access Denied".
But, when I load a page full of thumbnails that are direct links to the
files it's fine. but when useing this script to read it seems to make
the server pass-out momentarily. give it half a minute and it will
server pages again.
I have watched the server's CPU useage and memory (as it loads) and all
seems fine.
I have noticed that the problem goes if you run a squid proxy on the
same box and it doesn't have trouble for people with slower connection
eg. dial up modem.
Anyone have any ideas what could be set wrong? buffer size maybe? do I
have to close this function off at all?
Any help much appriciated, I've been scraching my head on this for a
couple of months now.
J.
btw - I have asked on the apache conf newsgroup with no luck.
Comment