refreshing jpg's

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
iknowu99
Forum Commoner
Posts: 39
Joined: Thu Aug 14, 2008 3:20 pm

refreshing jpg's

Post by iknowu99 »

i have a simple html site that includes jpg files, these jpg files get updated often on the ftp, is there a way to have the opened through internet html to know and refresh? because now i sometimes have to clear private data (cookes, temp files, etc..) and reload the page just to get the new jpg to load :banghead:

this is not really a php question but i'm betting you guys would know, thanks!
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: refreshing jpg's

Post by alex.barylski »

Give the image a dynamic URI, like:

Code: Select all

<img src="some_file.jpeg?expires=67364365" />
Where expires is a timestamp of when it was delivered generated by PHP...
Post Reply