Page 1 of 1

imagepng

Posted: Mon Jul 27, 2009 8:02 pm
by psychotomus
Ok. So I can save my image. It changes every time someone submits a form, but it doesn't change the image on the page itself. you need to refresh the page to get it to display the new image. how can I fix this?
//save image
imagepng($bg, "data/games/$gameid.png");
all {VAR} is replaced with real values. correct values at that
how i call the image;

Code: Select all

<input type="image" src="{MAPPATH}" height="{HEIGHT}" width="{WIDTH}" border="0" name="image">

Re: imagepng

Posted: Tue Jul 28, 2009 10:23 am
by pickle
It's probably cached. You can get around that by referencing the image with a random string. The browser treats that as a unique URL and re-retrieves the image from the server.