Answers for "PHP force refresh image"

PHP
1

php force image refresh

<img src="imagename.png?r=<?echo(rand());?>"> //produces a random number in url
Posted by: Guest on August-02-2020
0

PHP force refresh image

//In PHP you can send a random number or the current timestamp

<img src="image.jpg?<?=Date('U')?>">
//or
<img src="image.jpg?<?=rand(1,32000)?>">
Posted by: Guest on March-03-2022

Browse Popular Code Answers by Language