Jump to content
xisto Community
MacFly

Refreshing Images

Recommended Posts

I've got a script that generates a graph by creating it as a .png file (I can't output the image directly to the browser because of the way I need to generate the data).This all works ok however, in order to keep the data managable I've set a limit so that it only displays 12 months data at a time. The problem I have is that when I click on the next button to display the next set of data, the graph remains the same until you refresh the browser.I've tried using unlink() to delete the image file forcing the script to re-generate it when the script is reloaded but it doesn't seem to delete the file.The code is fairly lengthy so haven't displayed it here.Any suggestions?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.