04-06-2008, 02:16 PM
|
#6 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
or you could use ob_start() ?
PHP Code:
echo 'wadwadwa';
session_start();
$_SESSION['ls'] = 'dawdwa';
produces the error because the text has been sent to the client, so use output buffering to pipe all the text/cookies/session cookies all at once
PHP Code:
ob_start(); echo 'wadwadwa';
session_start();
$_SESSION['ls'] = 'dawdwa'; ob_flush();
it could also be being caused by whitespace before the <?php.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|