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

Reply via email to