this is not really a php question but i'm betting you guys would know, thanks!
refreshing jpg's
Moderator: General Moderators
refreshing jpg's
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
this is not really a php question but i'm betting you guys would know, thanks!
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
Give the image a dynamic URI, like:
Where expires is a timestamp of when it was delivered generated by PHP...
Code: Select all
<img src="some_file.jpeg?expires=67364365" />