Page 1 of 1

refreshing jpg's

Posted: Mon Aug 18, 2008 4:50 pm
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!

Re: refreshing jpg's

Posted: Mon Aug 18, 2008 6:42 pm
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...