I'm getting the following error when I use the session_start(); command:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xxxxx/public_html/checkout/TestPhp1.php:2) in /home/xxxxx/public_html/checkout/TestPhp1.php on line 3
I've stripped down the code in the page to only include:
<html>
<?php
session_start();
session_register('boxes');
?>
</html>
When I look at View source, it appears that there is a < br/> tag being inserted by PHP before session_start(). Here's how the source looks:
<html>
<br />
<b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/mindylu/public_html/checkout/TestPhp1.php:2) in <b>/home/mindylu/public_html/checkout/TestPhp1.php</b> on line <b>3</b><br />
I can't figure out where the <br /> tag is coming from - any suggestions would be appreciated. Thanks for your help!