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 
problem pollphp (msg error)  XML
Forum Index » Support Forum
Author Message
sebulba
Beginner

Joined: 23/06/2004 19:21:11
Messages: 6
Offline

Sorry for my english

I have installed the pollphp and it functions correctly. The problem is after you ave voted. This error message is displayed : Warning: Cannot modify header information - headers already sent by (output started at /home/mambourg/www/Leftframe.php:11) in /home/mambourg/www/poll/db/poll_cookie.php on line 21

CHMOD autorisation are correct.

What's the solution ?

Thanks

Ps : The URL for the test poll as here -> http://www.mambourg-charleroi.be/index2temp.htm
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

remove any white space from the file...
(before and after the php code and at the very end of the file)

empty lines, spaces and empty lines with spaces.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
sebulba
Beginner

Joined: 23/06/2004 19:21:11
Messages: 6
Offline

Sorry but I this solution does not understand exactly. How to remove these spaces? In code HTML ? Thank you for these explications.

Give me a example please

Thanks
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

okay then empty lines you can see but i'll replace spaces in this example with *'s.



As you can see there are 4 empty lines, and all 4 of them have spaces in them.
They all need to be removed so it looks more like this...



- Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
sebulba
Beginner

Joined: 23/06/2004 19:21:11
Messages: 6
Offline

all empty spaces were removed, but l error is always there.

Are you other solution ?

I insert my html code here.

The URL for the test poll as here -> http://www.mambourg-charleroi.be/Leftframe.php

Thanks for help

<html>
<head>
<title>Site du Mambourg</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#FFFFFF">
<font color="#CCCCCC" size="+1" face="Peinaud">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="sporting.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="sporting.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
</font>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="noyau.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="noyau.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="stade.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="stade.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="BGCOLOR" value="#9999FF">
<param name="movie" value="newsdudimanche.swf">
<param name="quality" value="high">
<embed src="newsdudimanche.swf" width="100" height="23" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#9999FF" ></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="Photos.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="Photos.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<font color="#CCCCCC" size="+1"></font>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="calresult.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="calresult.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="button4.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="button4.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="securite.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="securite.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="togo.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#99ccff">
<embed src="togo.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#99ccff"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
<param name="movie" value="accueil.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#99ccff">
<embed src="accueil.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#99ccff"></embed>
</object>
<table width="80" border="0" cellspacing="0" cellpadding="1" bgcolor="#666699">
<tr align="center">
<td>
<style type="text/css">
<!--
.input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
-->
</style>
<font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#FFFFFF"><b>Sondage</b></font></td>
</tr>
<tr align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center" bgcolor="#FFFFFF">
<tr>
<td height="40" valign="middle"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1"><b>Quelles sont vos espérances concernant cette nouvelle saison ?</b></font></td>
</tr>
<tr align="right" valign="top">
<td>
<form method="post" action="Leftframe.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top" align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
<td width="15%"><input type="radio" name="option_id" value="1"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">1ère à la 3ème place ?</font></td>
</tr>
<tr>
<td width="15%"><input type="radio" name="option_id" value="2"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">4ème à la 9ème place ?</font></td>
</tr>
<tr>
<td width="15%"><input type="radio" name="option_id" value="3"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">10ème à la 16ème place ?</font></td>
</tr>
<tr>
<td width="15%"><input type="radio" name="option_id" value="4"></td>
<td width="85%"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#000000">17ème ou 18ème place (descendant)</font></td>
</tr>
</table>
<input type="hidden" name="action" value="vote">
<input type="hidden" name="poll_ident" value="4">
<input type="submit" value="Vote" class="input">
<br>
<br>
<font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1"><a href="Leftframe.php?action=results&amp;poll_ident=4">Voir les résultats</a></font>
</td>
</tr>
</table>
</form>
<font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="http://www.proxy2.de" target="_blank" title="Advanced Poll">Version 2.02</a></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</html>
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

i need the php code not the outputted html code.

- Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
sebulba
Beginner

Joined: 23/06/2004 19:21:11
Messages: 6
Offline

This code ?

<html>
<head>
<title>Site du Mambourg</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#FFFFFF">
<font color="#CCCCCC" size="+1" face="Peinaud">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="sporting.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="sporting.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
</font>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="noyau.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="noyau.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="stade.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="stade.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="BGCOLOR" value="#9999FF">
<param name="movie" value="newsdudimanche.swf">
<param name="quality" value="high">
<embed src="newsdudimanche.swf" width="100" height="23" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#9999FF" ></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="Photos.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="Photos.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<font color="#CCCCCC" size="+1"></font>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="calresult.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="calresult.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="button4.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="button4.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="securite.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#9999FF">
<embed src="securite.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#9999FF"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
<param name="movie" value="togo.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#99ccff">
<embed src="togo.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="23" bgcolor="#99ccff"></embed>
</object>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
<param name="movie" value="accueil.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#99ccff">
<embed src="accueil.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" bgcolor="#99ccff"></embed>
</object>
<?php
// Important! You have to include it before your html code
include_once "/home/mambourg/www/poll/db/poll_cookie.php";
?>
<?php
include_once "/home/mambourg/www/poll/db/booth.php";
echo $php_poll->poll_process(4);
?>

</html>


Thanks
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

yep that's the one. In the read me it says put the cookie code BEFORE other stuff.

So it should be like this...

<?php
// Important! You have to include it before your html code
include_once "/home/mambourg/www/poll/db/poll_cookie.php";
?>
<html>
<head>
<title>Site du Mambourg</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#FFFFFF">
<font color="#CCCCCC" size="+1" face="Peinaud">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="23">
..................................................
</embed>
</object>
<?php
include_once "/home/mambourg/www/poll/db/booth.php";
echo $php_poll->poll_process(4);
?>

</html>

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
sebulba
Beginner

Joined: 23/06/2004 19:21:11
Messages: 6
Offline

It's ok.

Big thanks for your help.
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

no problem

- Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
sebulba
Beginner

Joined: 23/06/2004 19:21:11
Messages: 6
Offline

Yo

I ave other problem.

I tranfered poll to other frame containt already phpcode.
The poll fonction correctly but after the voting poll the phpcode for display the news is no displayed.

before html ->
<?php
// Important! You have to include it before your html code
include_once "/home/mambourg/www/poll/db/poll_cookie.php";
?>


In the html code ->
<?php
include_once "/home/mambourg/www/poll/db/booth.php";
echo $php_poll->poll_process(4);
?>


AND

<? Include ("news.php"); ?>


When i update the internet page, all phpcode fonction correctly and the dispplay is correct. Curious ....

Thank for your help
Anonymous



Solution of my problem I find on this page when you talk about inserting cookies before anything else.
Thank you, Auron, for this help.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum