... <?php ... // here is some code setcookie ("auth", $auth);</code-->
br><br><br> BUT when I began to translate your "engine" in MySQL database, cookies stopped asking, and instead you receive this warning:<br><pre><code>PHP Warning: Cannot modify header information - headers already sent by (output started at /file path:12) in /path to the same file on line 275</code></pre><br><br><br> Line 12 — start of code (after the HTML, there is <?php), and line 275 function setcookie().<br--><br><br> The code itself has changed a bit, there was added a line:<br><pre><code class="php"> ... <?php include("./database.php"); // file is CLEAN, there is NO output at all, only the functions for the database at the beginning of the BOM, too, NO ... setcookie ("auth"); ?></code></pre><br><br><br> What could be the problem? Already the whole head broke on the table and the laptop, but I can't understand why when you save in files all rolled, and DB is not. br><br> Googled, followed all the advice (no BOM, the file database.php actually, output does not contain). br><br> Please, harrowdene help!
Hello world! <?php setcookie('test', 'test') ?>
<?php for ($i = 1; $i < 500; ++$i) echo 'Hello world! '; ?> <?php setcookie('test', 'test') ?>
Warning: Cannot modify header information - headers already sent
database.phpafter pegging begins. She appears before installing cookies.
Find more questions by tags PHP