php-general | 2000071
Date: 07/15/00
- Next message: Fates: "[PHP] Problems with PHP upload to symlink"
- Previous message: Meir Kriheli: "Re: [PHP] php.ini search path?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andreas Pour wrote:
> Hi,
>
> Have all server requests for domain.org point to this php script:
>
> <?
> header("Location: " . ereg_replace("domain.org", "domain.net",
> $BASE_URL));
> ?>
Andreas,
Great idea, but it doesn't work. The $BASE_URL is empty. Looking at a
PHP book I have, it appears that I should be using the HTTP_HOST server
environment variable, but being brand new to PHP, I have no clue how to
get at the variable. Can you enlighten me?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Fates: "[PHP] Problems with PHP upload to symlink"
- Previous message: Meir Kriheli: "Re: [PHP] php.ini search path?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

