<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "[ap]How to use absolute path when displaying the poll?"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "[ap]How to use absolute path when displaying the poll?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[ap]How to use absolute path when displaying the poll?</title>
				<description><![CDATA[ Hi,<br /> <br /> The default code for displaying the poll works well like that:<br /> [code]<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once &quot;/home/my_domain/public_html/poll/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;html&gt;<br /> &lt;body&gt;<br /> &lt;?php<br /> include_once &quot;/home/my_domain/public_html/poll/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;5&#41;;<br /> ?&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]<br /> <br /> But, I would really prefer to have the include done with an absolute path, not a relative locale. That would give somethnig like that:<br /> [code]<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once &quot;http&#58;//poll.my_domain.com/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;html&gt;<br /> &lt;body&gt;<br /> &lt;?php<br /> include_once &quot;http&#58;//poll.my_domain.com/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;5&#41;;<br /> ?&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]<br /> <br /> But, even if it includes properly the files, when displaying the page, I received the following error:<br /> [quote]<br /> Fatal error: Call to a member function poll_process() on a non-object in /home/my_domain/public_html/another_subdomain/test_poll.php on line 163<br /> [/quote]<br /> <br /> Please note that the poll is displayed on another sub domain that the one where the poll is installed.<br /> <br /> As anyone an idea if that it is possible to acheive or is it only possible to use the relative path (quite a constraint when you want to maintain a locale version of the same web site)?<br /> <br /> Thanks.<br /> <br /> Necleto]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5664/20621.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5664/20621.php</link>
				<pubDate><![CDATA[Tue, 30 May 2006 19:26:57]]> GMT</pubDate>
				<author><![CDATA[ Necleto]]></author>
			</item>
			<item>
				<title>So, nobody does?</title>
				<description><![CDATA[ Hi,<br /> <br /> So, looking at the number of answers given to this post, I guess that nobody uses the poll the way I propose.... and neither will I...<br /> <br /> Thanks anyway.<br /> <br /> Necleto]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5664/20790.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5664/20790.php</link>
				<pubDate><![CDATA[Mon, 19 Jun 2006 19:34:25]]> GMT</pubDate>
				<author><![CDATA[ Necleto]]></author>
			</item>
	</channel>
</rss>