Re: header()-question

From: Date: Mon, 02 Sep 2002 18:24:28 +0000
Subject: Re: header()-question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-114952@lists.php.net to get a copy of this message
<nicos@php.net> skrev i meddelandet news:20020902164616.71029.qmail@pb1.pair.com... > Dont use a directory but an url > like > header("Location: http://www.php.net"); > Thanks, that made it work. But now comes the next problem. When finshed logging in login.php is reloaded with a confirmation text ('You're logged in. Click the button to go back'). But, at the bottom of the page the following error message appears: Fatal error: Cannot redeclare createlinks() (previously declared in c:\apache\htdocs\ha\recycle\lankar.php:6) in c:\apache\htdocs\ha\recycle\lankar.php on line 5 The problem is: the call for the function createlinks() is done from the previous page (index.php), the file where I user header(), and I can't see that the function has bin called for yet. Index.php looks as follows: <?php if (!isset($login)) { header("Location: http://127.0.0.1/ha/login/login.php?goal=log&goback=$PHP_SELF"); } else { include("../recycle/head.php"); if($skrivut != "jepp") { createLinks(); } include("../gjenvinn/foot.php"); } ?>

« previous php.general (#114952) next »