note 81198 rejected from function.HttpResponse-redirect by betz

From: Date: Mon, 18 Feb 2008 09:57:12 +0000
Subject: note 81198 rejected from function.HttpResponse-redirect by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136240@lists.php.net to get a copy of this message
Note Submitter: hannnndy at yahoo dot com ---- what is the diffrence betwean this method and the header('Location : http://www.google.com/'); ? class Response { public function redirect($url) { header("Location: " . $url); exit(); } } $response = new Response(); $response->redirect($yourUrl); //same as ASP

« previous php.notes (#136240) next »