67coronet383 wrote:...Using that code in the php document, and only that code, at the absolute very top of the document...
And how do u include that document in your script? or do u execute only that script and it throws u the warning?
Let me show u an example, to let u know what is happening:
We take this code of your:
<?php
setcookie("xforumusername", "fghfh", time() + 777600, "/");
setcookie("xforumpassword", "fdghf", time() + 777600, "/");
?>
and save it at the absolute very top of the document and save it under 001.php name.
If I run that script it all goes well.
If I open another document (002.php) and add this:
<!-- Here should be a white space -->
<?php include('001.php'); ?>
note that in front of your php tags is a white space, that means that the header has already been sent and will trigger that warning and the cookie wont be set.
If u execute 001.php and the warning is still there then I suggest u to change your editor ...