Проблем при headers

Dido_net

Registered
Здравейте ;)
Сложил съм мода който админ е дал за показване на профила на главната страница ( http://web-tourist.net/login/login/view.php?st=1103 )

Обаче ако се опитам да сложа това:

<?php
setcookie("7aStyle", "style1");
?>

ми излиза това:

<b>Warning</b>: Cannot modify header information - headers already sent by (output started at index.php:18) in <b>styles.php</b> on line <b>6</b><br />

на 6ти ред имам това
setcookie("7aStyle", "style1");

:(
как да го оправя?
 
по принцип в документацията пише
Код:
Note: As of PHP 4, you can use output buffering to get around this problem, with the overhead of all of your output to the browser being buffered in the server until you send it. You can do this by calling ob_start() and ob_end_flush() in your script, or setting the output_buffering configuration directive on in your php.ini or server configuration files.
такаче сложи в началото и в края съответната функция

п.с. дано не се бърам
 

Back
Горе