<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "PHP Error"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "PHP Error"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>PHP Error</title>
				<description><![CDATA[ Hi,<br /> <br /> I get this error at www.britishgp-sc.co.uk<br /> Anyone help?<br /> Cheers.<br /> <br /> Warning: Cannot modify header information - headers already sent by (output started at /home/britgpsc/public_html/index.htm:3) in /home/britgpsc/public_html/poll/poll_cookie.php on line 21]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12507.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12507.php</link>
				<pubDate><![CDATA[Sun, 19 Dec 2004 22:46:30]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Self explanatory. On line 21 of poll_cookie.php you have some white space. I assume that the code ends at line 20 or 21. The end is ?&gt;. Open the file and see if you can place the cursor beyond the ?&gt; and if you can delete the space until the cursor is just after the ?&gt;.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12510.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12510.php</link>
				<pubDate><![CDATA[Sun, 19 Dec 2004 22:56:21]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Self explanatory. On line 21 of poll_cookie.php you have some white space. I assume that the code ends at line 20 or 21. The end is ?&gt;. Open the file and see if you can place the cursor beyond the ?&gt; and if you can delete the space until the cursor is just after the ?&gt;.[/quote]<br /> <br /> <br /> Thanks for replying so quickly, my code is as below with no spaces and it still does it <img src="https://proxy2.de/forum//images/smilies/9d71f0541cff0a302a0309c5079e8dee.gif"  /><br /> <br /> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br /> "http://www.w3.org/TR/html4/loose.dtd"&gt;<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once "/home/britgpsc/public_html/poll/poll_cookie.php";<br /> ?&gt;<br /> &lt;html&gt;&lt;!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" --&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12511.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12511.php</link>
				<pubDate><![CDATA[Sun, 19 Dec 2004 23:12:41]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ No as i said the problem is in the file called [b]poll_cookie.php[/b]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12512.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12512.php</link>
				<pubDate><![CDATA[Sun, 19 Dec 2004 23:14:17]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]No as i said the problem is in the file called [b]poll_cookie.php[/b][/quote]<br /> <br /> Cheers, as below, no white space? help!<br /> <br /> &lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * this code is optional<br />  * Important! You have to include it <br />  * before your html code<br />  * ----------------------------------------------<br />  */<br /> <br /> $cookie_expire = 96; // hours<br /> <br /> $action = (isset($HTTP_GET_VARS['action'])) ? $HTTP_GET_VARS['action'] : '';<br /> $action = (isset($HTTP_POST_VARS['action'])) ? $HTTP_POST_VARS['action'] : $action;<br /> $poll_ident = (isset($HTTP_GET_VARS['poll_ident'])) ? $HTTP_GET_VARS['poll_ident'] : '';<br /> $poll_ident = (isset($HTTP_POST_VARS['poll_ident'])) ? $HTTP_POST_VARS['poll_ident'] : $poll_ident;<br /> <br /> if ($action=="vote" &amp;&amp; (isset($HTTP_POST_VARS['option_id']) || isset($HTTP_GET_VARS['option_id']))) {<br />     $cookie_name = "AdvancedPoll".$poll_ident;<br />     if (!isset($HTTP_COOKIE_VARS[$cookie_name])) {<br />         $endtime = time()+3600*$cookie_expire;<br />         setcookie($cookie_name, "1", $endtime);<br />     }<br /> }<br /> <br /> ?&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12513.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12513.php</link>
				<pubDate><![CDATA[Sun, 19 Dec 2004 23:40:55]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I've cleaned it up and it still does it <img src="https://proxy2.de/forum//images/smilies/9d71f0541cff0a302a0309c5079e8dee.gif"  />(<br /> <br /> &lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * this code is optional<br />  * Important! You have to include it <br />  * before your html code<br />  * ----------------------------------------------<br />  */<br /> <br /> $cookie_expire = 96; // hours<br /> <br /> $action = (isset($HTTP_GET_VARS['action'])) ? $HTTP_GET_VARS['action'] : '';<br /> $action = (isset($HTTP_POST_VARS['action'])) ? $HTTP_POST_VARS['action'] : $action;<br /> $poll_ident = (isset($HTTP_GET_VARS['poll_ident'])) ? $HTTP_GET_VARS['poll_ident'] : '';<br /> $poll_ident = (isset($HTTP_POST_VARS['poll_ident'])) ? $HTTP_POST_VARS['poll_ident'] : $poll_ident;<br /> <br /> if ($action=="vote" &amp;&amp; (isset($HTTP_POST_VARS['option_id']) || isset($HTTP_GET_VARS['option_id']))) {<br />     $cookie_name = "AdvancedPoll".$poll_ident;<br />     if (!isset($HTTP_COOKIE_VARS[$cookie_name])) {<br />         $endtime = time()+3600*$cookie_expire;<br />         setcookie($cookie_name, "1", $endtime);<br /> }<br /> }<br /> ?&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12514.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12514.php</link>
				<pubDate><![CDATA[Sun, 19 Dec 2004 23:47:01]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ It looks like the spaces removed were on lines inside the functions(?)  Check for [b]blank lines[/b], not spaces, especially make sure there are no blank lines after the [b]?&gt;[/b] at the end. Here's how my code looks:<br /> <br /> [code]&lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * this code is optional<br />  * Important! You have to include it <br />  * before your html code<br />  * ----------------------------------------------<br />  */<br /> <br /> $cookie_expire = 96; // hours<br /> <br /> $action = &#40;isset&#40;$HTTP_GET_VARS&#91;'action'&#93;&#41;&#41; ? $HTTP_GET_VARS&#91;'action'&#93; &#58; '';<br /> $action = &#40;isset&#40;$HTTP_POST_VARS&#91;'action'&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;'action'&#93; &#58; $action;<br /> $poll_ident = &#40;isset&#40;$HTTP_GET_VARS&#91;'poll_ident'&#93;&#41;&#41; ? $HTTP_GET_VARS&#91;'poll_ident'&#93; &#58; '';<br /> $poll_ident = &#40;isset&#40;$HTTP_POST_VARS&#91;'poll_ident'&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;'poll_ident'&#93; &#58; $poll_ident;<br /> <br /> if &#40;$action==&quot;vote&quot; &amp;&amp; &#40;isset&#40;$HTTP_POST_VARS&#91;'option_id'&#93;&#41; || isset&#40;$HTTP_GET_VARS&#91;'option_id'&#93;&#41;&#41;&#41; &#123;<br />     $cookie_name = &quot;AdvancedPoll&quot;.$poll_ident;<br />     if &#40;!isset&#40;$HTTP_COOKIE_VARS&#91;$cookie_name&#93;&#41;&#41; &#123;<br />         $endtime = time&#40;&#41;+3600*$cookie_expire;<br />         setcookie&#40;$cookie_name, &quot;1&quot;, $endtime&#41;;<br />     &#125;<br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> Here are some posts explaining:<br /> <br /> "Warning: Cannot modify header information - headers already sent by...": <br /> http://proxy2.de/forum/viewtopic.php?t=3200&amp;highlight=cannot+modify+headers <br /> http://proxy2.de/forum/viewtopic.php?t=3093&amp;highlight=cannot+modify+header<br /> <br /> The reason they end with the phrase "cannot+modify+header" is because they were located by using the search button at the top of this forum and searching for [b]cannot AND modify AND header[/b].  Just so you know you can find info that way.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12524.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12524.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 06:59:34]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Cheers,<br /> As an aside what should my index page be like out of the three examples below;<br /> <br /> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br /> "http://www.w3.org/TR/html4/loose.dtd"&gt;<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once "/home/britgpsc/public_html/poll/poll_cookie.php";<br /> ?&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;<br /> &lt;!-- TemplateInfo codeOutsideHTMLIsLocked="false" --&gt;<br /> <br /> OR<br /> <br /> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br /> "http://www.w3.org/TR/html4/loose.dtd"&gt;<br /> &lt;html&gt;<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once "/home/britgpsc/public_html/poll/poll_cookie.php";<br /> ?&gt;<br /> &lt;head&gt;<br /> &lt;!-- TemplateInfo codeOutsideHTMLIsLocked="false" --&gt;<br /> <br /> OR<br /> <br /> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br /> "http://www.w3.org/TR/html4/loose.dtd"&gt;<br /> &lt;html&gt;<br /> &lt;head&gt;<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once "/home/britgpsc/public_html/poll/poll_cookie.php";<br /> ?&gt;<br /> &lt;!-- TemplateInfo codeOutsideHTMLIsLocked="false" --&gt;<br /> <br /> Thanks,<br /> Ricky.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12563.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12563.php</link>
				<pubDate><![CDATA[Mon, 20 Dec 2004 22:25:43]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Cookie code first, before any html, and poll code wherever you want it to appear...example:<br /> [code]&lt;?php <br /> /* Include this before your html code */ <br /> include &quot;poll/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;!DOCTYPE &#40;etc.&#41;&quot;&gt; <br /> <br /> &lt;html&gt;<br /> <br /> &lt;head&gt;<br /> &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br /> &lt;meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage&quot;&gt;<br /> &lt;meta name=&quot;robots&quot; content=&quot;index,follow&quot;&gt;<br /> &lt;title&gt;Opinion Polls&lt;/title&gt;<br /> &lt;link rel=&quot;StyleSheet&quot; href=&quot;style/style.css&quot;<br /> type=&quot;text/css&quot;&gt;<br /> &lt;/head&gt;<br /> <br /> &lt;body background=&quot;background.jpg&quot; <br /> vlink=&quot;#0000FF&quot; alink=&quot;#0000FF&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot;&gt;<br /> <br /> &lt;?php<br /> include_once &quot;/home/xxxxxx/public_html/poll/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;1&#41;;<br /> ?&gt;<br /> <br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12566.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12566.php</link>
				<pubDate><![CDATA[Tue, 21 Dec 2004 02:49:20]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Many Thanks!</title>
				<description><![CDATA[ Wohoo! that's fixed the cookie error!<br /> Cheers.<br /> Code appears right at the top now.<br /> Many thanks,<br /> Ricky.<br />  :D <br /> <br /> [quote="Anonymous"]Cookie code first, before any html, and poll code wherever you want it to appear...example:<br /> [code]&lt;?php <br /> /* Include this before your html code */ <br /> include &quot;poll/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;!DOCTYPE &#40;etc.&#41;&quot;&gt; <br /> <br /> &lt;html&gt;<br /> <br /> &lt;head&gt;<br /> &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br /> &lt;meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage&quot;&gt;<br /> &lt;meta name=&quot;robots&quot; content=&quot;index,follow&quot;&gt;<br /> &lt;title&gt;Opinion Polls&lt;/title&gt;<br /> &lt;link rel=&quot;StyleSheet&quot; href=&quot;style/style.css&quot;<br /> type=&quot;text/css&quot;&gt;<br /> &lt;/head&gt;<br /> <br /> &lt;body background=&quot;background.jpg&quot; <br /> vlink=&quot;#0000FF&quot; alink=&quot;#0000FF&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot;&gt;<br /> <br /> &lt;?php<br /> include_once &quot;/home/xxxxxx/public_html/poll/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;1&#41;;<br /> ?&gt;<br /> <br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code][/quote]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4017/12572.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4017/12572.php</link>
				<pubDate><![CDATA[Tue, 21 Dec 2004 13:00:34]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>