If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Poll poll_cookie.php heading error  XML
Forum Index » Support Forum
Author Message
Anonymous



I get this warning on top of page when vote.

Warning: Cannot add header information - headers already sent by (output started at /home/acypaaor/public_html/home.php:2) in /home/acypaaor/public_html/poll2/poll_cookie.php on line 22

I checked line 22 and says:

setcookie($cookie_name, "1", $endtime);

How do I get rid of this error and still use cookies enabled?

I would like script to run with cookies enabled it works fine with cookies unenabled.


Chris
Anonymous



ok, here is what you should do:

Put this lines of code before
<html> tag, NOT AFTER!

<?php
include_once "/home3/www/breia/anticlan/pollphp/textfile/poll_cookie.php";
?>

Hope it helps.
If not email me: victor@openworldmedia.com
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum