[PHP] session_start() warnings

2004-06-12 Thread PaoAge
Hi, all:
When I use session_start function, I receive the following warning messages:
Warning: session_start(): Cannot send session cookie - headers already 
sent by (output started at 
/home/w4t3c101/public_html/ListClientInfo.php:2) in 
/home/w4t3c101/public_html/SessionControl.php on line 9
Warning: session_start(): Cannot send session cache limiter - headers 
already sent (output started at 
/home/w4t3c101/public_html/ListClientInfo.php:2) in 
/home/w4t3c101/public_html/SessionControl.php on line 9

Can anyone explain why it happens and how to solve the warnings. Thanks :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] session_start() warnings

2004-06-12 Thread PaoAge
Larry E . Ullman wrote:
When I use session_start function, I receive the following warning 
messages:

Warning: session_start(): Cannot send session cookie - headers already 
sent by (output started at 
/home/w4t3c101/public_html/ListClientInfo.php:2) in 
/home/w4t3c101/public_html/SessionControl.php on line 9
Warning: session_start(): Cannot send session cache limiter - headers 
already sent (output started at 
/home/w4t3c101/public_html/ListClientInfo.php:2) in 
/home/w4t3c101/public_html/SessionControl.php on line 9

Can anyone explain why it happens and how to solve the warnings. 
Thanks :)

Something on or about line 2 of ListClientInfo.php is sending data to 
the Web browser. This could be HTML, plain text, or blank spaces. Get 
rid of that and you'll get rid of the warnings.

Larry

Thanks, I got it. I leave a line of space before I use include directive.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php