Get a new image every time from the browser instead of getting it from the cache. - Php

Get a new image

Snippet Code

Rate this page :
  [ 0 votes]

This will force the browser to get a new image every time.this will used to avoid cache images.

<img src="/path/to/img.jpg?h=<?php echo md5(microtime(true)); ?>" />


Ask Questions

Ask Question