PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Using PHP to auto refresh images

Go down

Using PHP to auto refresh images Empty Using PHP to auto refresh images

Post by jamied_uk 8th July 2022, 22:32

Code:
?<?=Date('U')?>




Example 1

Code:
uploaded2.png?<?=Date('U')?>


Example 2

Code:
image.src="uploads/<?php echo $username;?>/uploaded2.png?<?=Date('U')?>";

  
Example 3


Code:
<img src="image.jpg?<?=rand(1,32000)?>">





https://newbedev.com/php-force-refresh-image
jamied_uk
jamied_uk
Admin

Posts : 2950
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum