Jump to content

Recommended Posts

Hello, guys. I am developing a Flash application for creating postcards, which can be sent by the user to someones mail. Well, as flash can´t create a jpeg image by itself, I got some php codes for that.

 

Everything woks perfectly in FireFox but, when tested in IE, it  has a problem:

 

Well, the php code I found to create the image, also records it in the user´s computer. So, if I make one postcard, send it (and it will be recorded), the do another postcard and send it again, it will record always the first postcard. But it send the correct one by mail.

I understand this is because the cache of user´s browser, so I was wondering if is there one solution for this, like force the cache cleaning.

Well, I would even go for taking off the recording on the user´s computer, so it would only send by e-mail, but I never learned php, so I don´t know which part to delete so it don´t record the image.... :(

 

I would much appreciate help on this.

 

Thanks in advance

 

P. Capelo

Link to comment
https://forums.phpfreaks.com/topic/48262-php-image-creator-not-working-well-in-ie/
Share on other sites

theirs a few ways, ie

Headers

<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>

 

 

or link to the php file withsomething random on the URI ie "image.php?rnd=11:34.22"

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.