You are here: Home » Programming & Computer » PHP » Auto-Refresh the New Change of Uploaded Image

Auto-Refresh the New Change of Uploaded Image


The webpage will not showing you the new change of your uploaded image immediately or right after you change /uploaded /replaced the old or existing image with the new uploaded image.

Below coding will show you how to fixed the above mentioned scenario:-


$rand = rand();

Figure1: Includes rand() to return random number in your PHP script.


<img src="’images/<?php" alt="" />’ width=’100px’ height=’90px’ />

Figure2: Attached random number within the image script under html script.

Enjoy Coding and Buy ME a Coffee to Support My Blog!


Leave a Reply

Your email address will not be published. Required fields are marked *