note 81198 added to function.HttpResponse-redirect

From: Date: Mon, 18 Feb 2008 09:30:59 +0000
Subject: note 81198 added to function.HttpResponse-redirect
Groups: php.notes 
Request: Send a blank email to php-notes+get-136239@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 81.90.144.26 ---- Manual Page -- http://www.php.net/manual/en/function.HttpResponse-redirect.php Edit -- https://master.php.net/note/edit/81198 Del: integrated -- https://master.php.net/note/delete/81198/integrated Del: useless -- https://master.php.net/note/delete/81198/useless Del: bad code -- https://master.php.net/note/delete/81198/bad+code Del: spam -- https://master.php.net/note/delete/81198/spam Del: non-english -- https://master.php.net/note/delete/81198/non-english Del: in docs -- https://master.php.net/note/delete/81198/in+docs Del: other reasons-- https://master.php.net/note/delete/81198 Reject -- https://master.php.net/note/reject/81198 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136239) next »