/    Sign up×
Community /Pin to ProfileBookmark

error in my POLL

Hi all again and TNX for any help.

I try to install a poll for my web page and I find this one:
Advanced Poll 2.0.2
[url]http://proxy2.de/scripts.php[/url]

Is a really good poll with easy installation, the poll works but sometime I get this error:

Warning: Cannot modify header information – headers already sent by (output started at /u/web/sfane1/test/news/en.php:2) in /u/web/sfane1/poll/poll_cookie.php on line 21

This error it appears at the top of the web page.

In the head of my web page I have this:

<?php
// Important! You have to include it before your html code
include_once “/u/web/sfane1/poll/poll_cookie.php”;
?>
<html>
<head>

I put this as the setup of the poll explain

and this is the poll code in the web page:

<?php
include_once “/u/web/sfane1/poll/booth.php”;
echo $php_poll->poll_process(4);
?>

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@pyroJun 05.2003 — From what you posted, here's what I can tell you:

That kind of warning means that PHP is trying to modify the header information (cookies, HTTP, etc) after contents has been sent to the page (including <html>,<head>,etc) Basically, you just need to make sure that the PHP script does not try to modefy the headers after contents has been sent to the webpage.
×

Success!

Help @_LOBO_ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...