Re: Error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 10:26 AM +0100 9/21/08, Ashley Sheridan wrote:

It's an easy mistake to make, not just reserved for rookies ;) I had a
similar problem

Me too, I think we've all been bitten by that.

The point is simply don't send anything to the browser before "<?php" if you're going to be using session_start();

You can do this:
--------start of document
<?php


session_start();

But you can't do this:
--------start of document

<?php session_start();

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux