phpThumb displayed correctly the first time...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kaervek
Forum Commoner
Posts: 25
Joined: Fri Jul 08, 2005 7:17 am
Location: Newfoundland
Contact:

phpThumb displayed correctly the first time...

Post by Kaervek »

im trying to use a script called phpThumb to generate thumbnails of pictures for an online photo album...

and if i can get it working ima use it for a lot of other things

so i finally got phpThumb to find the proper files and generate a thumbnail... the first time i loaded the page up all the thumbnails generated perfectly. but now the damn webserver thinks it has a cached copy of the thumbnail when the page is loaded... for some reason the cached copy doesnt exist, and the server cant serve it, nor does it serve the newly generated one from phpThumb. all i get is a page full of red x's

so i put in a meta tag for no-cache and the damn thing still does the same thing.

i have the first thumbnail set so that when i click it it tries to open the thumbnail in its own page. and it even shows the error page where the webserver is trying to send the cached copy... here it is:

Not Found
The requested URL /cache/phpThumb_cache_..%2FTabard2.jpg_w100_1109861667_q75.jpeg was not found on this server.

--------------------------------------------------------------------------------

Apache Server at http://www.cs.mun.ca Port 80


EVEN THOUGH i have all these in my header

<META HTTP-EQUIV='CACHE-CONTROL' CONTENT='NO-CACHE'>
<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<META HTTP-EQUIV='Expires' CONTENT='-1'>

i use IE, got a friend to test it in firefox... its broken in both
can anyone help me please

i have sent an email to the author of phpThumb but i have little hope that he'll reply.
Kaervek
Forum Commoner
Posts: 25
Joined: Fri Jul 08, 2005 7:17 am
Location: Newfoundland
Contact:

Post by Kaervek »

ok so i just figured out i am about this | | much more resourcefull than i thought i was

it turns out that phpThumb actually saves cached copies of the thumbnails itself. i found the files on my site. So its just that the webserver is looking for them in the wrong place. i guess phpThumb assumes that it is in the root folder? or is it that it simply assumes it is in the same folder as the html document?

can anyone clarify this for me?
Post Reply