> To those of you that helped me with this problem I have spent time
> eliminating lines of code.. the problem was in the following line:
> if ($_SESSION["first_name"])
>
> the line should be like this
> if (ISSET($_SESSION["first_name"]))
The change that would induce this error is likely
To those of you that helped me with this problem I have spent time
eliminating lines of code.. the problem was in the following line:
if ($_SESSION["first_name"])
the line should be like this
if (ISSET($_SESSION["first_name"]))
Seems like ISSET made a difference in eliminating warning: Cannot add
Perhaps?
But you don't really need the parenthesis ;)
- E
"Justin French" <[EMAIL PROTECTED]> wrote:
> on 04/11/02 4:15 PM, @ Edwin ([EMAIL PROTECTED]) wrote:
>
> > Hello,
> >
> > Could it be that because you have a blank line between
> >
> >> require_once "classes/HtmlTemplate.class";
>
>
on 04/11/02 4:15 PM, @ Edwin ([EMAIL PROTECTED]) wrote:
> Hello,
>
> Could it be that because you have a blank line between
>
>> require_once "classes/HtmlTemplate.class";
Shouldn't it be require_once("classes/HtmlTemplate.class");
???
Justin
--
PHP General Mailing List (http://www.php.ne
Hello,
Could it be that because you have a blank line between
> require_once "classes/HtmlTemplate.class";
>
> if ($HTTP_SESSION_VARS[user_id]){
?
(Or even some blank lines or spaces before "require_once".)
Just guessing...
- E
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Paul,
Something I don't think others have mentioned yet is tht a common reason
for this error is when there is an error somewhere in your script prior
to the header() call. Because PHP will output the error to the screen
(assuming you don't have any special error handling), it might not be
you
Paul,
Got any spaces or lines above the "
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 9:53 AM
Subject: [PHP] Am I blind? simple 15 line code producing error
> Perhaps I am blind but I have the following simple code that gets me
> errors:
> session_sta
aul; [EMAIL PROTECTED]
> Subject: Re: [PHP] Am I blind? simple 15 line code producing error
>
> > require_once ("config.inc");
> > require_once "classes/HtmlTemplate.class";
> >
> > The error is:
> > Warning: Cannot add header in
require's, just to be sure?
btw: $HTTP_SESSION_VARS[user_id] should really be
$HTTP_SESSION_VARS['user_id']
-Sascha
>
> -Original Message-
> From: Sascha Cunz [mailto:Sascha@;GaNoAn.org]
> Sent: Sunday, November 03, 2002 1:03 PM
> To: Paul; [EMAIL PROTECTED]
&
Yes, I use those in other pages with no problem..it just this page
causes some problems..
-Original Message-
From: Sascha Cunz [mailto:Sascha@;GaNoAn.org]
Sent: Sunday, November 03, 2002 1:03 PM
To: Paul; [EMAIL PROTECTED]
Subject: Re: [PHP] Am I blind? simple 15 line code producing
> require_once ("config.inc");
> require_once "classes/HtmlTemplate.class";
> The error is:
> Warning: Cannot add header information - headers already sent by (output
> started by.. ..line 6) ...on line 12
>
> Line 6 is the line with if ($HTTP_SESSION_VARS[user_id])
> L
Perhaps I am blind but I have the following simple code that gets me
errors:
The error is:
Warning: Cannot add header information - headers already sent by (output
started by.. ..line 6) ...on line 12
Line 6 is the line with if ($HTTP_SESSION_VARS[user_id])
Line 12 is the line starting with head
12 matches
Mail list logo