Re: [BULK] RE: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

From: Date: Thu, 14 Jun 2007 05:43:17 +0000
Subject: Re: [BULK] RE: [PHP] Re: [BULK] [PHP] Redirecting to a parent page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256968@lists.php.net to get a copy of this message
Yamil Ortega wrote:
Ok, but what happens if I change server and there is no more apache2 directory? Do I have to change all the headers in my 37 web pages?
do this: // in a config file, or header file $sitename = "http:/localhost/apache2/"; eader file // whereever it is needed header("Location: $sitename/file3.php"); You may also want to look at the object buffer and perhaps clear that before doing a redirect.

« previous php.general (#256968) next »