<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/</link>
	<description>AvantLink.com Blog</description>
	<lastBuildDate>Sat, 04 Sep 2010 17:00:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Powerful yet easy to implement datafeed scripts &#183; AvantLink&#8217;s Affiliate Marketing Blog</title>
		<link>http://www.avantshare.com/blog/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/comment-page-1/#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/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/comment-page-1/#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&#039;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(&#039;/serversideincludes/sidenav.html&#039;); // 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 &quot;$my_include_content&quot; to something unique like &quot;$my_include_sidenav&quot;.

The next block of Scott&#039;s code I changed also, changing &quot;CONTENT&quot; and &quot;content&quot; to SIDENAV and sidenav like you see in the code below:

&quot;$strHTML = eregi_replace(&#039;\[MY_INCLUDE_SIDENAV\]&#039;, $my_include_sidenav, $strHTML);&quot;

Then you in your template.html you would add the new code &quot;[MY_INCLUDE_SIDENAV]&quot; where you want to second include to be added.

Note: I had a problem with the way that Scott&#039;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 &#039; quote marks. So the easiest way to correct this is to copy and paste the &quot;single &#039; quote marks&quot; from your shop.php code and replace them in the code that you copied and pasted into your shop.php.

 It&#039;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&#039;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 &#039; 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&#039;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(&#8216;/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(&#8216;\[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/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/comment-page-1/#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 = &#039;Whatever additional path you want to include from&#039;;
$current_path = ini_get(&quot;include_path&quot;);
ini_set(&quot;include_path&quot;, &quot;$current_path:&quot; . $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(&#8220;include_path&#8221;);<br />
ini_set(&#8220;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/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/comment-page-1/#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/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/comment-page-1/#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&#039;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/affiliate-tool-tutorials/using-php-includes-with-the-datafeed-web-service-client/comment-page-1/#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 &quot;include_path&quot; 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&#039;t exist at &quot;include_path&quot;=  /mysite/avant_includes. Here&#039;s an example of what I was able to accomplish(thanks to scott&#039;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>
