<?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 PEAR classes with bluehost php &#8211; Edit your include_path</title>
	<atom:link href="http://www.n8williams.com/devblog/general_dev/using-pear-classes-with-bluehost-php-edit-your-include_path/feed" rel="self" type="application/rss+xml" />
	<link>http://www.n8williams.com/devblog/general_dev/using-pear-classes-with-bluehost-php-edit-your-include_path</link>
	<description>A knowledge base for simple (and beyond) web applications development</description>
	<lastBuildDate>Fri, 23 Jul 2010 14:03:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.n8williams.com/devblog/general_dev/using-pear-classes-with-bluehost-php-edit-your-include_path/comment-page-1#comment-1119</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 14 Sep 2009 08:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=116#comment-1119</guid>
		<description>Understanding the include_path is (a) KEY to using php. I&#039;d lookup some entries on google. I&#039;ll just summarize to avoid repeating data that is available all over the web. I have to admit, though, that there isn&#039;t a really nice,easy article explaining the basics of the php include_path. But in a nutshell:

Look for the line in the php.ini (it should already be in there on install, but may be comented out). It will say &#039;include_path = .:/somepath:/anotherpath&#039;. You need to append &#039;:/home/yourusername/php&#039; and possibly &#039;:/usr/lib/php&#039; to the end of this list. The php.ini for your bluehost should be in your webroot. The PEAR install should have created a folder &#039;php&#039; or added to it, in the folder &#039;/home(3?)/yourusername&#039;. If you don&#039;t have a php folder in &#039;home(3?)/yourusername&#039; then you need to install PEAR through the CPanel, or find out where the thing installed it in your user folder/shared server space.

You can also set this manually on one php script page using ini_set(&#039;include_path&#039;, &#039;.:/yoursdesiredpath:/yourdesiredpath2&#039;);

It took me forever to use the include_path effectively. Note the syntax, the . means &#039;look in the current directory first&#039; and then each other path is separated by a :. These are all the places php will look for included/required php files/classes. Essentially the php_include path is like your php mappings, telling php where to find files you will include in your scripts. With coldfusion it was a lot clearer with a gui server admin that had you add each server mapping. It took me a bit to translate &#039;include_path&#039; to &#039;php server mappings&#039; in my mind. To begin with, I had been used to using includes for templating purposes only.

Also note that the VTCalendar stuff may have screwy interfacing with your php include_path settings.</description>
		<content:encoded><![CDATA[<p>Understanding the include_path is (a) KEY to using php. I&#8217;d lookup some entries on google. I&#8217;ll just summarize to avoid repeating data that is available all over the web. I have to admit, though, that there isn&#8217;t a really nice,easy article explaining the basics of the php include_path. But in a nutshell:</p>
<p>Look for the line in the php.ini (it should already be in there on install, but may be comented out). It will say &#8216;include_path = .:/somepath:/anotherpath&#8217;. You need to append &#8216;:/home/yourusername/php&#8217; and possibly &#8216;:/usr/lib/php&#8217; to the end of this list. The php.ini for your bluehost should be in your webroot. The PEAR install should have created a folder &#8216;php&#8217; or added to it, in the folder &#8216;/home(3?)/yourusername&#8217;. If you don&#8217;t have a php folder in &#8216;home(3?)/yourusername&#8217; then you need to install PEAR through the CPanel, or find out where the thing installed it in your user folder/shared server space.</p>
<p>You can also set this manually on one php script page using ini_set(&#8217;include_path&#8217;, &#8216;.:/yoursdesiredpath:/yourdesiredpath2&#8242;);</p>
<p>It took me forever to use the include_path effectively. Note the syntax, the . means &#8216;look in the current directory first&#8217; and then each other path is separated by a :. These are all the places php will look for included/required php files/classes. Essentially the php_include path is like your php mappings, telling php where to find files you will include in your scripts. With coldfusion it was a lot clearer with a gui server admin that had you add each server mapping. It took me a bit to translate &#8216;include_path&#8217; to &#8216;php server mappings&#8217; in my mind. To begin with, I had been used to using includes for templating purposes only.</p>
<p>Also note that the VTCalendar stuff may have screwy interfacing with your php include_path settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mindy Cronic</title>
		<link>http://www.n8williams.com/devblog/general_dev/using-pear-classes-with-bluehost-php-edit-your-include_path/comment-page-1#comment-1112</link>
		<dc:creator>Mindy Cronic</dc:creator>
		<pubDate>Sun, 13 Sep 2009 18:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=116#comment-1112</guid>
		<description>Thank you for your tip, I&#039;ve been trying to install a program called VTCalendar and it requires PEAR but I keep getting DB errors because of PEAR not installing properly.  Where do you actually add the include text in the .ini file?  Any help would be appreciated!</description>
		<content:encoded><![CDATA[<p>Thank you for your tip, I&#8217;ve been trying to install a program called VTCalendar and it requires PEAR but I keep getting DB errors because of PEAR not installing properly.  Where do you actually add the include text in the .ini file?  Any help would be appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
