Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php force image refresh

<img src="imagename.png?r=<?echo(rand());?>"> //produces a random number in url
Comment

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)?>">  
  
Comment

PREVIOUS NEXT
Code Example
Php :: get word between two characters php 
Php :: laravel 8 selecet the 2nd to the last record 
Php :: fixuphost 
Php :: php executable not found visual studio code ubuntu 
Php :: how to take input in php 
Php :: php remove html tags 
Php :: laravel active nav 
Php :: php translate url wpml 
Php :: log magento 2.4.3 
Php :: mysql server has gone away php 
Php :: convert stdclass object to array php 
Php :: Problem 1 - phpspec/prophecy is locked to version 1.13.0 and an update of this package was not requested. - phpspec/prophecy 1.13.0 requires php ^7.2 || ~8.0, <8.1 - your php version (8.1.2) does not satisfy that requirement. 
Php :: insert php variable css 
Php :: show selected value in dropdown laravel 
Php :: redirect from controller in laravel 
Php :: php set x-frame-options 
Php :: appending txt file from php 
Php :: php pass variable to anonymous function 
Php :: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in phar:///usr/local/bin/composer1.phar/src/Composer/DependencyResolver/RuleSet.php on line 8 
Php :: set image asset path in laravel 
Php :: wordpress acf get field 
Php :: laravel timestamps on pivot table 
Php :: calculate string php 
Php :: convert string to array laravel 
Php :: get last id in laravel 
Php :: wp enqueue style 
Php :: laravel print log 
Php :: method put laravel 
Php :: console log in php 
Php :: laravel migration remove unique 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =