473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Thumbnails and access denied.

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.
Jul 17 '05 #1
1 1836
James Smith wrote:
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.


Ok, I've noticed that this happens with other Broadband ISP's, but only
when they are not using a proxy. Install a proxy and it works. Anyone
have any idea on where I might be able to find a setting or something...

the site is http://www.digitalsnapper.net

J.
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rednelle | last post by:
Greetings all, As a newbie, using Access 2000, I would appreciate advice on the best way to include pictures. I have developed a 'Home Inventory' database which can include jpeg thumbnails of...
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: theS70RM | last post by:
Hey, It seems vista 64 cant display thumbnails for TGA files. Dont really want to use a 3rd party viewer. Found this: http://greggman.com/pages/thumbplug_tga.htm|pagenum=0|lang=english|?q ...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.