At 20:47 09.11.2002, Donahue Ben said: --------------------[snip]-------------------- >I am using the header function what i have is this: > >header("Location: >http://".$_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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php