Julius Caesar's great-great-granddaughter (zyada) wrote in php,
Julius Caesar's great-great-granddaughter
zyada
php

Does anyone know why using "require_once" in php breaks setcookie, when taking having the identical code in a script doesn't?

The error I get is "Warning: Cannot modify header information - headers already sent by (output started at /home/content/z/y/a/zyada/html/SpreadingRoots/open_srdb.php:14) in /home/content/z/y/a/zyada/html/SpreadingRoots/sr_login.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /home/content/z/y/a/zyada/html/SpreadingRoots/open_srdb.php:14) in /home/content/z/y/a/zyada/html/SpreadingRoots/sr_login.php on line 37"




Obvious changes


And the include file looks like this:
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 3 comments