Re: redirect

From: Date: Wed, 29 Oct 2003 19:32:40 +0000
Subject: Re: redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168050@lists.php.net to get a copy of this message
--- alain dhaene <alain.dhaene@worldonline.be> wrote: > Is there in php something as a redirect to another page like in asp? Yes, and as with ASP, there are several methods. Make an example script that has only this: <? header('Location: http://www.google.com/'); ?> As for your error about headers already being sent, this is because you generate output prior to the call to header(). You can't do this due to a protocol restriction. The same applies to ASP, although it might buffer output or something for you. Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#168050) next »