Re: header function
| From: | Ernest E Vogelsinger | Date: | Sat, 09 Nov 2002 20:01:42 +0000 |
| Subject: | Re: header function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123616@lists.php.net to get a copy of this message | ||
At 20:47 09.11.2002, Donahue Ben said:
--------------------[snip]--------------------
>I am using the header function what i have is this:
>
>header("Location:
>˜Ü¹ëàf
>xF#Ðär8http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/".$relative_url
>
>$relative_url is a php file
>
>when i run this script with this header function in
>it, i get an error saying:"Redirection limit for this
>URL has exceeded. Unable to load the requested page."
--------------------[snip]--------------------
This message might mean that $relative_url points to the same script...
what browser make&model are you using? IE simply loops, without any error.
A small glitch: in case dirname($_SERVER['PHP_SELF']) is empty (root
directory), your header would look as:
http://www.yourdomain.com//relative.php
Note the double slash...
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/