Dont use a directory but an url like header("Location: http://www.php.net");
-- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "ØYstein HåLand" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I use this code with the intension to REDIRECT to the file login.php > > if (!isset($login)) { > header("Location: /ha/login/log.php?goal=log&goback=$PHP_SELF"); > } else { > some code here > } > > When I load the page the following happens: The source show the filename > with this script and not the log.php, but the content is from log.php > I don't understand noooothing. > So, if header() don't do redirection, which php-function does? > (Or, is there a better way to achieve the same?) > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php