RE: [PHP] Am I blind? simple 15 line code producing error - SOLUTION FOUND! - tks

2002-11-04 Thread Paul
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

RE: [PHP] Am I blind? simple 15 line code producing error - SOLUTION FOUND! - tks

2002-11-04 Thread David Freeman
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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Sascha Cunz
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

RE: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Paul
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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Sascha Cunz
? 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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Jason Wong
: [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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Hugh Danaher
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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Chris Shiflett
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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread @ Edwin
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,

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Justin French
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

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread @ Edwin
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