note 74267 deleted from function.header by tularis

From: Date: Fri, 20 Apr 2007 14:10:24 +0000
Subject: note 74267 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125618@lists.php.net to get a copy of this message
Note Submitter: kiur \ at wells \ dot ee ---- A good function to force redirects. <?php function redirect($u , $s = 0) { session_write_close(); if($s < 1) header("Location: " . $u); exit(" <meta http-equiv=\"refresh\" content=\"{$s};url={$u}\" > <script> function doRefresh() { window.location = '{$u}'; } doRefreshTimeout = setTimeout(\"doRefresh()\" , ".($s*1000)."); </script> <h1>Sind suunatakse...</h1> "); } ?>

« previous php.notes (#125618) next »