Jump to content

not cache imagepng() ?


leeming

Recommended Posts

i have this picture that is made using the imagepng() function.. but im having a few users report to me that they are seeing an outdated version of the picture (and im guessing its cos its been cache on their machine).. is there any way i can made it so this doesnt happen?
Link to comment
Share on other sites

Are you using imagepng($im, $filename) to write the the image to a file then displaying the resultant file

<img src='filename.png'>

or are you displaying the dynamic image

<img src='myimage.php'>

I was under the impression that if it's the latter it cannot be cached as the image file doesn't exist until it is created on-the-fly.
Link to comment
Share on other sites

[quote author=Barand link=topic=112131.msg455136#msg455136 date=1161372394]
Are you using imagepng($im, $filename) to write the the image to a file then displaying the resultant file

<img src='filename.png'>

or are you displaying the dynamic image

<img src='myimage.php'>

I was under the impression that if it's the latter it cannot be cached as the image file doesn't exist until it is created on-the-fly.
[/quote]
its shown as a .png, because it saves load time every time a page is viewed... and the picture is only updated as updates happen
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.