php - How to clear cache or make the images run the code again in html? -



php - How to clear cache or make the images run the code again in html? -

i running code

<img src="../graphics/g_builder.php?type=funil&interval=1"/> <img src="../graphics/g_builder.php?type=funil&interval=3"/> <img src="../graphics/g_builder.php?type=conversao&interval=2"/> <img src="../graphics/g_builder.php?type=conversao&interval=3"/> <img src="../graphics/g_builder.php?type=nps&interval=2"/>

that generates image in folder rest of code utilize later, works 1 time or pressing ctrl +f5 clears cache if im not wrong...

so need way renew images everytime phone call php or somehow clear cache without using headers... can do?

you append timestamp property end of src attribute. example:

<img src="../graphics/g_builder.php?type=nps&amp;interval=2&amp;time=<?php print time(); ?>"/>

this way, every time refresh page, src attribute different.

php html caching

Comments

Popular posts from this blog

php - How to pass multiple values from url -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -