note 38211 added to function.header

From: Date: Fri, 12 Dec 2003 00:43:58 +0000
Subject: note 38211 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-61846@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: 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()); } ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38211 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38211&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38211&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61846) next »