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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux