Jump to content

Wierd Error


Recommended Posts

I keep getting a weird error like this:

Warning: Cannot modify header information - headers already sent by (output started at /home/zyra/public_html/head.php:13) in /home/zyra/public_html/loginact.php on line 20

 

I think it has something to do with some cookies I'm working with. Any insight?

Link to comment
Share on other sites

There are a few things that could cause this, such as misplaced white space somewhere (like at the beginning or end of the file) or any html before any headers are sent.

 

You can enable output buffering to get rid of the error:

Place this at the beginning of your page:
<? ob_start(); ?>

and this at the end of your page:
<? ob_flush(); ?>

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...