<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using PHP includes with the datafeed web service client</title>
	<atom:link href="http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/</link>
	<description>AvantLink.com Blog</description>
	<pubDate>Sat, 22 Nov 2008 09:59:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: ???</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61353</link>
		<dc:creator>???</dc:creator>
		<pubDate>Mon, 10 Nov 2008 15:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61353</guid>
		<description>Webcam ?????? ?????????? ??????????, ???????, ?????? ? ??????. ??? ?????? webcam-??????? ? ?????-?????. ??????? ????????, ????????? ??????. ???, ??? ?? ??? ????????? - ??? ?????? ?????????? ????????, ?????????? ?????????.??????? ?????, ?????????? ? ??????. ???????? ??????, ??????????? ? ??????????.</description>
		<content:encoded><![CDATA[<p>Webcam ?????? ?????????? ??????????, ???????, ?????? ? ??????. ??? ?????? webcam-??????? ? ?????-?????. ??????? ????????, ????????? ??????. ???, ??? ?? ??? ????????? - ??? ?????? ?????????? ????????, ?????????? ?????????.??????? ?????, ?????????? ? ??????. ???????? ??????, ??????????? ? ??????????.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ?????</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61336</link>
		<dc:creator>?????</dc:creator>
		<pubDate>Mon, 10 Nov 2008 08:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61336</guid>
		<description>????????-?????? ? ???, ? ????? ? ???????????, ???????? ????? ????????? ?? ?????????????????? ????????? ?????? ?????? ??? ??????????? ????? ????, ????????????????. ??????????: ???????????????, ??????????????????, ?????? ??. ??????, ??????????????? ?????????. ????????, ?????? ? ???????????, ?????????? ?????????????. ????? ? ????????? ????????.</description>
		<content:encoded><![CDATA[<p>????????-?????? ? ???, ? ????? ? ???????????, ???????? ????? ????????? ?? ?????????????????? ????????? ?????? ?????? ??? ??????????? ????? ????, ????????????????. ??????????: ???????????????, ??????????????????, ?????? ??. ??????, ??????????????? ?????????. ????????, ?????? ? ???????????, ?????????? ?????????????. ????? ? ????????? ????????.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ????</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61245</link>
		<dc:creator>????</dc:creator>
		<pubDate>Sun, 09 Nov 2008 15:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61245</guid>
		<description>???????? ???????? ????? ?????? ??? ?????? ???????.????????? ??????, ?????????????????? ? ??????????????? ????????? - ??????????????. ?? ?????????? ??????? ??????? ?????, ??????????, ????????? ?????? ?????,? ????? ?????? (???????, ?????? ? ?????????).100% ??? ?????.</description>
		<content:encoded><![CDATA[<p>???????? ???????? ????? ?????? ??? ?????? ???????.????????? ??????, ?????????????????? ? ??????????????? ????????? - ??????????????. ?? ?????????? ??????? ??????? ?????, ??????????, ????????? ?????? ?????,? ????? ?????? (???????, ?????? ? ?????????).100% ??? ?????.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ???????</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61242</link>
		<dc:creator>???????</dc:creator>
		<pubDate>Sun, 09 Nov 2008 12:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-61242</guid>
		<description>???????? ????? ??? ????? ???. Www.Piterplastic.Ru ???? ???????? ????? ???????? ??? ?????? ??????????. ??????????? ????? ??????????? ???????. ???????????? ????????? ? ?????-??????????. ???????? ?? ???? ??</description>
		<content:encoded><![CDATA[<p>???????? ????? ??? ????? ???. <a href="http://Www.Piterplastic.Ru" rel="nofollow">http://Www.Piterplastic.Ru</a> ???? ???????? ????? ???????? ??? ?????? ??????????. ??????????? ????? ??????????? ???????. ???????????? ????????? ? ?????-??????????. ???????? ?? ???? ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Powerful yet easy to implement datafeed scripts &#183; AvantLink&#8217;s Affiliate Marketing Blog</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-58867</link>
		<dc:creator>Powerful yet easy to implement datafeed scripts &#183; AvantLink&#8217;s Affiliate Marketing Blog</dc:creator>
		<pubDate>Mon, 13 Oct 2008 18:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-58867</guid>
		<description>[...] and blog posts. I have been into the Tools section many times. I have read a few blog posts about how to tweak the datafeed script but I still just didn&#8217;t realize how powerful and easy to implement the datafeed script was [...]</description>
		<content:encoded><![CDATA[<p>[...] and blog posts. I have been into the Tools section many times. I have read a few blog posts about how to tweak the datafeed script but I still just didn&#8217;t realize how powerful and easy to implement the datafeed script was [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Barks</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-57267</link>
		<dc:creator>Charlie Barks</dc:creator>
		<pubDate>Thu, 18 Sep 2008 23:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-57267</guid>
		<description>Just a note to mention that I was able to use this code to add multiple PHP Includes in my Template.html. I am not a coder but was able to figure it out so thought I would share in case someone else wishes to do the same thing. My goal was to be able to put my upper navbar and sidenav into the template as a php include so that I could update one file to update all my navigation.

Basically all I did just add the code, as per Scott's instructions above, two times then change a few variables in the second instance of the code. 

For Example in this code below:

ob_start();
include('/serversideincludes/sidenav.html'); // Replace with actual path and file name.
$my_include_sidenav = ob_get_contents();
ob_end_clean();

I changed the include path on the second line of code and I also changed the 3rd line from "$my_include_content" to something unique like "$my_include_sidenav".

The next block of Scott's code I changed also, changing "CONTENT" and "content" to SIDENAV and sidenav like you see in the code below:

"$strHTML = eregi_replace('\[MY_INCLUDE_SIDENAV\]', $my_include_sidenav, $strHTML);"

Then you in your template.html you would add the new code "[MY_INCLUDE_SIDENAV]" where you want to second include to be added.

Note: I had a problem with the way that Scott's code copies and pastes into Dreamweaver and David shared that it was because Wordpress displays this part of the code differently for the single ' quote marks. So the easiest way to correct this is to copy and paste the "single ' quote marks" from your shop.php code and replace them in the code that you copied and pasted into your shop.php.

 It's really hard to tell the difference in this small single quote mark (not sure what the official name of this symbol is) but I can tell you that the code will not work if you don't replace them. Certainly those with more coding experience know this but a rookie like me would miss this. So just replace all four of the single ' quote marks with ones copied from your original code and it will work.

Thanks Scott and David. Please feel free to correct anything that I didn't explain properly and thanks for your help.</description>
		<content:encoded><![CDATA[<p>Just a note to mention that I was able to use this code to add multiple PHP Includes in my Template.html. I am not a coder but was able to figure it out so thought I would share in case someone else wishes to do the same thing. My goal was to be able to put my upper navbar and sidenav into the template as a php include so that I could update one file to update all my navigation.</p>
<p>Basically all I did just add the code, as per Scott&#8217;s instructions above, two times then change a few variables in the second instance of the code. </p>
<p>For Example in this code below:</p>
<p>ob_start();<br />
include(&#8217;/serversideincludes/sidenav.html&#8217;); // Replace with actual path and file name.<br />
$my_include_sidenav = ob_get_contents();<br />
ob_end_clean();</p>
<p>I changed the include path on the second line of code and I also changed the 3rd line from &#8220;$my_include_content&#8221; to something unique like &#8220;$my_include_sidenav&#8221;.</p>
<p>The next block of Scott&#8217;s code I changed also, changing &#8220;CONTENT&#8221; and &#8220;content&#8221; to SIDENAV and sidenav like you see in the code below:</p>
<p>&#8220;$strHTML = eregi_replace(&#8217;\[MY_INCLUDE_SIDENAV\]&#8216;, $my_include_sidenav, $strHTML);&#8221;</p>
<p>Then you in your template.html you would add the new code &#8220;[MY_INCLUDE_SIDENAV]&#8221; where you want to second include to be added.</p>
<p>Note: I had a problem with the way that Scott&#8217;s code copies and pastes into Dreamweaver and David shared that it was because Wordpress displays this part of the code differently for the single &#8216; quote marks. So the easiest way to correct this is to copy and paste the &#8220;single &#8216; quote marks&#8221; from your shop.php code and replace them in the code that you copied and pasted into your shop.php.</p>
<p> It&#8217;s really hard to tell the difference in this small single quote mark (not sure what the official name of this symbol is) but I can tell you that the code will not work if you don&#8217;t replace them. Certainly those with more coding experience know this but a rookie like me would miss this. So just replace all four of the single &#8216; quote marks with ones copied from your original code and it will work.</p>
<p>Thanks Scott and David. Please feel free to correct anything that I didn&#8217;t explain properly and thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: support</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31811</link>
		<dc:creator>support</dc:creator>
		<pubDate>Mon, 25 Feb 2008 14:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31811</guid>
		<description>You can use code similar to the following to reset the include_path variable from within a script: 

$new_path = 'Whatever additional path you want to include from';
$current_path = ini_get("include_path");
ini_set("include_path", "$current_path:" . $new_path);

-David</description>
		<content:encoded><![CDATA[<p>You can use code similar to the following to reset the include_path variable from within a script: </p>
<p>$new_path = &#8216;Whatever additional path you want to include from&#8217;;<br />
$current_path = ini_get(&#8221;include_path&#8221;);<br />
ini_set(&#8221;include_path&#8221;, &#8220;$current_path:&#8221; . $new_path);</p>
<p>-David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BJ Baker</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31766</link>
		<dc:creator>BJ Baker</dc:creator>
		<pubDate>Sun, 24 Feb 2008 23:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31766</guid>
		<description>How do you reset the “include_path”</description>
		<content:encoded><![CDATA[<p>How do you reset the “include_path”</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: support</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31550</link>
		<dc:creator>support</dc:creator>
		<pubDate>Thu, 21 Feb 2008 21:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31550</guid>
		<description>That's looking great JT. Your implementation is an excellent example of what can be accomplished using this tool.

Scott</description>
		<content:encoded><![CDATA[<p>That&#8217;s looking great JT. Your implementation is an excellent example of what can be accomplished using this tool.</p>
<p>Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JT VonLunen</title>
		<link>http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31546</link>
		<dc:creator>JT VonLunen</dc:creator>
		<pubDate>Thu, 21 Feb 2008 21:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.avantshare.com/blog/2008/02/21/using-php-includes-with-the-datafeed-web-service-client/#comment-31546</guid>
		<description>Thanks for the quick response on this Scott.  The first few lines of code are key. 

I had to reset the "include_path" right before my include call to get the correct file name because the .php file I using also has additional includes in the code.  I kept getting an error that the directory or files don't exist at "include_path"=  /mysite/avant_includes. Here's an example of what I was able to accomplish(thanks to scott's help): http://www.nationaloutdoors.net/bc/shop.php/D-1/CampHike.html.  You can see recent posts (my content) at the bottom of the page.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick response on this Scott.  The first few lines of code are key. </p>
<p>I had to reset the &#8220;include_path&#8221; right before my include call to get the correct file name because the .php file I using also has additional includes in the code.  I kept getting an error that the directory or files don&#8217;t exist at &#8220;include_path&#8221;=  /mysite/avant_includes. Here&#8217;s an example of what I was able to accomplish(thanks to scott&#8217;s help): <a href="http://www.nationaloutdoors.net/bc/shop.php/D-1/CampHike.html" rel="nofollow">http://www.nationaloutdoors.net/bc/shop.php/D-1/CampHike.html</a>.  You can see recent posts (my content) at the bottom of the page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
