RE: [PHP] Session Handling

From: Date: Wed, 06 Nov 2002 13:12:00 +0000
Subject: RE: [PHP] Session Handling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122985@lists.php.net to get a copy of this message
> JWH>You must call session_start before any output to the browser. A blank > JWH>line or space outside of PHP blocks is considered output. The error > JWH>message tells you exactly where the output started. Read the manual > for > JWH>more information, it's all covered. > > Hello, > > Actually i have started some javascript where its pointing as > error..other than that i didn;t leave any line space..Can any one please > tell me how to do this.. > > Regards > Uma Okay.... anything outside of the <? And ?> php tags is considered output to the browser. Session_start must be before all of this. In other words, you file should start like this: <? session_start(); //other PHP stuff ?> <html> ... ---John Holmes...

« previous php.general (#122985) next »