note 38211 deleted from function.header by victor

From: Date: Sat, 19 Jun 2004 15:37:35 +0000
Subject: note 38211 deleted from function.header by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71361@lists.php.net to get a copy of this message
Note Submitter: james@sumners.ath.cx ---- I have found that Internet Explorer prefers to use its cached copy of the page no matter what headers are sent to it. So, I devised this little bit of code: <?php if ( !isset($_REQUEST['tstamp']) && preg_match('/MSIE/i', $_SERVER['HTTP_USER_AGENT']) ) { foreach ( $_REQUEST as $key => $value ) { $url .= $key.'='.$value.'&'; } header('Location: index.php?'.$url.'tstamp='.time()); } ?>

« previous php.notes (#71361) next »