Always call the function on the first line of your page. Bye
"Paoage" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > 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