note 27807 rejected from function.header by nicos

From: Date: Thu, 19 Dec 2002 12:22:24 +0000
Subject: note 27807 rejected from function.header by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41120@lists.php.net to get a copy of this message
Redirect with header() really sucks in PHP when we use include() or require(). So, I've used javascript to redirect. Here is my function: function Redirect2URL($url) { print <<<EOT <SCRIPT language="JavaScript"> location.href = "$url"; </SCRIPT> EOT; }/*---------Redirect2URL()-----------------------*/ I don't find anything good except this method. Regards, R. Rajesh Jeba Anbiah http://RajeshAnbiah.itgo.com

« previous php.notes (#41120) next »