note 38211 modified in function.header by kennyt

From: Date: Mon, 05 Jan 2004 21:51:56 +0000
Subject: note 38211 modified in function.header by kennyt
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62969@lists.php.net to get a copy of this message
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()); } ?> --was-- 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: 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()); } http://www.php.net/manual/en/function.header.php

« previous php.notes (#62969) next »