Re: resize image not work in Firefox

Put this headers in your script because Firefox has a 'good' habit to
cache images that sometimes does this thing...

$expires = 1;
$exp_gmt = gmdate("D, d M Y H:i:s", time())." GMT";
$mod_gmt = gmdate("D, d M Y H:i:s", time())." GMT";

header("Content-type: image/gif");
header("Expires: {$exp_gmt}");
header("Last-Modified: {$mod_gmt}");
header("Cache-Control: public, max-age={$expires}");


Hope it helps,k it's working perfectly for me.
George Maicovschi [ Mo, 31 März 2008 20:25 ] [ ID #1933013 ]
PHP » alt.php » Re: resize image not work in Firefox

Vorheriges Thema: I have problem with UTF-8 in mysql
Nächstes Thema: SimpleTest testing composite objects.