Results 1 to 5 of 5
Dec 15, 2010, 02:20 #1
- Join Date
- Jul 2006
- Fionnphort, Isle of Mull, Scotland
- 1 Post(s)
- 0 Thread(s)
Can PHP clear the browser cache and refresh ?
I have a script which allows a visitor to the web site to upload an image. Since this replaces an earlier image, it gets given the same name (desirably). The upload, and the renaming happen OK. But when all is committed to the database and the visitor is shown the result, the old image is still visible. Clearing the browser cache and refreshing the screen (manually) shows the new image.
Is there a way I can get PHP (or JS, I suppose) to do this automatically as part of the script ?Tim Dawson
Isle of Mull, Scotland