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
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 be
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])
Line 12 is
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 error
?
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]
Subject: Re: [PHP] Am I blind? simple 15 line code producing
: [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 information - headers already sent by
Search for the above error in google (or search the archives
Paul,
Got any spaces or lines above the ? ?? Spaces there will kill the
script.
Hugh
- Original Message -
From: Paul [EMAIL PROTECTED]
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
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
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 unsubscribe,
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.net/)
To
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;
Shouldn't it be
11 matches
Mail list logo