note 43050 modified in function.imagejpeg by vincent

From: Date: Mon, 21 Jun 2004 13:41:11 +0000
Subject: note 43050 modified in function.imagejpeg by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71435@lists.php.net to get a copy of this message
I came across a problem where Internet Explorer refused to cache some dynamically created images. To get round this, send out a Last-Modified header. Eg: <?php header('Last-Modified: '.gmdate('D, d M Y H:i:s', $timestamp).' GMT'); header('Content-Type: image/jpeg'); imagejpeg($photo); ?> --was-- I came across a problem where Internet Explorer refused to cache some dynamically created images. To get round this, send out a Last-Modified header. Eg: <?php header('Last-Modified: '.date('r',$timestamp)); header('Content-Type: image/jpeg'); imagejpeg($photo); ?> http://php.net/manual/en/function.imagejpeg.php

« previous php.notes (#71435) next »