Saturday, April 4, 2015

Force the browser to get a new image - PHP Snippet

Force the browser to get a new image - PHP Snippet

This php snippet force the browser to get a new image every time.
<img src="/path/to/img.jpg?h= <?php echo md5(microtime(true)); ?> " />
Disqus Comments