Re: header()-question
| From: | nicos@php.net | Date: | Mon, 02 Sep 2002 16:45:39 +0000 |
| Subject: | Re: header()-question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114939@lists.php.net to get a copy of this message | ||
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
nicos@worldakt.com
nicos@php.net
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"ØYstein HåLand" <ha@ematte.se> a écrit dans le message de news:
20020902160516.46856.qmail@pb1.pair.com...
> 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?)
>
>