Jump to content

PHP image creator - not working well in IE


Capelo

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"

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.