Everything works fine except that when a new image is uploaded to replace an existing one, the browser still displays the former one until i refresh the page.
By using this piece of PHP, the browser thinks its a new image and reloads.
Anyway to complete the same task in Javascript instead of PHP?
Thanks in advance!!!
By using this piece of PHP, the browser thinks its a new image and reloads.
Code:
<img src="img.jpg?rand=<?=rand(1,1000);?>" />
Anyway to complete the same task in Javascript instead of PHP?
Thanks in advance!!!
Last edited:





