<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kurinchi Blogger Scribbles ... &#187; PHP</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Linux: How to upgrade PHP from 5.1 to 5.2 in CentOS5?</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/11/linux-how-to-upgrade-php-from-5-1-to-5-2-in-centos5.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/11/linux-how-to-upgrade-php-from-5-1-to-5-2-in-centos5.html#comments</comments>
		<pubDate>Tue, 15 Nov 2011 06:15:37 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[centos php]]></category>
		<category><![CDATA[php upgrade]]></category>
		<category><![CDATA[update php]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=919</guid>
		<description><![CDATA[First Check PHP version that is currently installed $ php -version Check Linux Version $ cat /etc/*-release (or redhat-release) Create a repo file with the content given below. As you can note, we are looking for package upgrade related to php only. $ vi /etc/yum.repos.d/CentOS-phpupgrade.repo # CentOS5-Upgrade: # This repository is a proving grounds for [...]]]></description>
			<content:encoded><![CDATA[<p>First Check PHP version that is currently installed</p>
<p><strong>$ php -version</strong></p>
<p>Check Linux Version </p>
<p><strong>$ cat /etc/*-release (or redhat-release)</strong></p>
<p>Create a repo file with the content given below. As you can note, we are looking for package upgrade related to php only.<br />
<span id="more-919"></span><br />
<strong>$ vi /etc/yum.repos.d/CentOS-phpupgrade.repo</strong></p>
<p># CentOS5-Upgrade:<br />
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.<br />
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.<br />
# These packages build and install, but are waiting for feedback from testers as to<br />
# functionality and stability. Packages in this repository will come and go during the<br />
# development period, so it should not be left enabled or used on production systems without due<br />
# consideration.<br />
[cent5-upgrade]<br />
name=CentOS5 Upgrade<br />
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing<br />
includepkgs=php*</p>
<p>Update the repository</p>
<p><strong>$ yum update</strong></p>
<p>Restart Apache server</p>
<p><strong>$ service http restart</strong></p>
<p>Check the PHP version that is installed</p>
<p><strong>$ php -version</strong></p>
<p>Check the package repository</p>
<p><strong>$ rpm -qa | grep php</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/11/linux-how-to-upgrade-php-from-5-1-to-5-2-in-centos5.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zend Framework: Simple steps to create Action Helper</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/03/zend-framework-simple-steps-to-create-action-helper.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/03/zend-framework-simple-steps-to-create-action-helper.html#comments</comments>
		<pubDate>Sun, 06 Mar 2011 21:59:25 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Action Helper]]></category>
		<category><![CDATA[action helpers]]></category>
		<category><![CDATA[actionhelper]]></category>
		<category><![CDATA[bootstrap]]></category>
		<category><![CDATA[controller helper]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=913</guid>
		<description><![CDATA[Action helpers in Zend controller helps in abstracting concepts that are in common use for the project without cluttering the code base. Zend&#8217;s official website and Zend casts gives detailed easy to use examples. Step 1: Decide where you want the helper class for the controllers to reside inside the application folder. For this example, [...]]]></description>
			<content:encoded><![CDATA[<p>Action helpers in <strong>Zend </strong>controller helps in abstracting concepts that are in common use for the project without cluttering the code base.</p>
<p><em>Zend&#8217;s official website and Zend casts gives detailed easy to use examples.  </em></p>
<p><strong>Step 1:</strong> Decide where you want the helper class for the controllers to reside inside the application folder. For this example, let us create a folder hierarchy under &#8220;application&#8221; folder</p>
<p>&raquo;  application/controllers/Helper<br />
<span id="more-913"></span><br />
<strong>Step 2: </strong>We will be creating a helper called &#8220;Printdata&#8221; in this example. For that to happen, we need to register the path for the helper file inside <em>bootstrap </em>file. </p>
<pre class="brush: php">
&lt;?php
protected function _initControllerHelpers(){Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/Helper', 'Hellohelper');	}
</pre>
<p>As you can notice &#8220;Hellohelper&#8221; is the name that will be prefixed to the helper class (like Hellohelper_Printdata) that we will create under /controllers/Helper.</p>
<p><strong>Step 3:</strong> Go inside the folder<em> application/controllers/Helper</em> and create a file called <strong>&#8220;Printdata.php&#8221;</strong>. We will write some code for testing our action helper.</p>
<pre class="brush: php">
&lt;?php
class Hellohelper_Printdata extends Zend_Controller_Action_Helper_Abstract{

	public function testPrint($passData){
		if($passData != ""){
			echo "Testing Printdata from action helper. Welcome ". $passData;
		}else{
			echo "Testing action helper";
		}
	} 	

}
</pre>
<p>Step 3: Now access the <strong>zend </strong>action helper in one of Zend&#8217;s controller file using the command</p>
<pre class="brush: php">

	$this->_helper->Printdata->testPrint("Lorem ipsum");
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/03/zend-framework-simple-steps-to-create-action-helper.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Excel reader</title>
		<link>http://kurinchilamp.kurinchilion.com/2011/01/php-excel-reader.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2011/01/php-excel-reader.html#comments</comments>
		<pubDate>Thu, 27 Jan 2011 00:11:59 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[excel reader]]></category>
		<category><![CDATA[new by reference]]></category>
		<category><![CDATA[php excel reader]]></category>
		<category><![CDATA[php xls reader]]></category>
		<category><![CDATA[split deprecated]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=879</guid>
		<description><![CDATA[php-excel-reader Parse and retrieve information from XLS files Download from Code Google When the excel reader is run on PHP 5.3, below mentioned deprecated warning messages gets shown. i) Assigning the return value of new by reference is deprecated Remove &#038; from the line below $this->_ole =&#038; new OLERead(); and have $this->_ole = new OLERead(); [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/php-excel-reader/" target="_blank">php-excel-reader</a> Parse and retrieve information from XLS files</p>
<p><a href="http://code.google.com/p/php-excel-reader/downloads/list" target="_blank">Download from Code Google</a></p>
<p>When the excel reader is run on <strong>PHP 5.3</strong>, below mentioned deprecated warning messages gets shown.</p>
<p><strong>i) Assigning the return value of new by reference is deprecated</strong></p>
<p>Remove &#038; from the line below</p>
<p><strong>$this->_ole =&#038; new OLERead();</strong></p>
<p>and have </p>
<p><strong>$this->_ole = new OLERead();</strong></p>
<p>instead.</p>
<p><strong>ii) Function split() is deprecated</strong></p>
<p>Function split() is deprecated and we can use explode() instead of that.</p>
<p><strong>$parts = split(&#8220;;&#8221;,$format); </strong></p>
<p>change it to</p>
<p><strong>$parts = explode(&#8220;;&#8221;,$format);</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2011/01/php-excel-reader.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure Zend Framework in windows?</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/10/how-to-configure-zend-framework-in-windows.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/10/how-to-configure-zend-framework-in-windows.html#comments</comments>
		<pubDate>Fri, 29 Oct 2010 15:20:50 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=897</guid>
		<description><![CDATA[Steps to configure Zend Framework in windows i) Check if the path to PHP executable is set. You can check this by executing php -version from command prompt. ii) Move zf.bat (or zf.sh) and zf.php which will be present in the Zend Framework&#8217;s bin folder to the php&#8217;s bin folder (where php.ini resides) iii) Move [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Steps to configure Zend Framework in windows</strong></p>
<p>i) Check if the path to PHP executable is set. You can check this by executing php -version from command prompt.</p>
<p>ii) Move zf.bat (or zf.sh) and zf.php which will be present in the Zend Framework&#8217;s bin folder to the php&#8217;s bin folder (where php.ini resides)</p>
<p>iii) Move \path\to\znedframework\library to the location identified by &#8220;include_path&#8221; variable</p>
<p>One way to identify the include_path variable<br />
-&gt; php -i</p>
<p>Other way is to open the php.ini file to identify the location. You can also append the path to zend framework&#8217;s library to the include path variable within php.ini file.</p>
<p>For Windows users, you can add an environment variable (system variable) that would point to the Zend Framework&#8217;s library folder and name the variable &#8220;ZEND_TOOL_INCLUDE_PATH&#8221; </p>
<p>If the configuration has been done correctly then you should be able to get a positive response when you execute</p>
<p>-&gt; zf show version<br />
-&gt; zf &#8211;help</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/10/how-to-configure-zend-framework-in-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: ‘Fatal error: Allowed memory size of 8388608 bytes exhausted’</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/08/php-%e2%80%98fatal-error-allowed-memory-size-of-8388608-bytes-exhausted%e2%80%99.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/08/php-%e2%80%98fatal-error-allowed-memory-size-of-8388608-bytes-exhausted%e2%80%99.html#comments</comments>
		<pubDate>Tue, 03 Aug 2010 03:24:46 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[allowed memory exhaust]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[memory limit]]></category>
		<category><![CDATA[php.ini]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=869</guid>
		<description><![CDATA[Reason why you see this message is due to PHP memory leakage. PHP is trying to load a large image or file into memory and is not finding enough space for it to load. If you think, that you will need the necessary feature to upload large files then there are two ways by which [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Reason </strong>why you see this message is due to PHP memory leakage. PHP is trying to load a large image or file into memory and is not finding enough space for it to load.</p>
<p>If you think, that you will need the necessary feature to upload large files then there are two ways by which you can enable this feature.</p>
<p><em>i) Edit the physical file and have the line</em><br />
<strong>ini_set(&#8220;memory_limit&#8221;,&#8221;20M&#8221;);</strong></p>
<p><em>ii) Edit php.ini </em>and add the following line. You need to restart the apache/IIS server once php.ini file is modified.<br />
<strong>memory_limit=32M</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/08/php-%e2%80%98fatal-error-allowed-memory-size-of-8388608-bytes-exhausted%e2%80%99.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend&#8217;s Directory Structure</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/zends-directory-structure.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/zends-directory-structure.html#comments</comments>
		<pubDate>Mon, 29 Mar 2010 16:19:24 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend directory]]></category>
		<category><![CDATA[zend directory structure]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=800</guid>
		<description><![CDATA[Some factors like host environment setup, multiple projects for single/multiple clients, common helpers, cross-functionality between sites etc. determines how the folder architecture needs to be structured. Zend framework offers this flexibility. Zend&#8217;s Default Directory Structure on installation &#124;&#8211; application &#124; &#124;&#8211; Bootstrap.php &#124; &#124;&#8211; configs &#124; &#124; `&#8211; application.ini &#124; &#124;&#8211; controllers &#124; &#124; &#124;&#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Some factors like host environment setup, multiple projects for single/multiple clients, common helpers, cross-functionality between sites etc. determines how the folder architecture needs to be structured. Zend framework offers this flexibility.<br />
<span id="more-800"></span><br />
<strong>Zend&#8217;s Default Directory Structure on installation</strong><br />
      |&#8211; application<br />
      |   |&#8211; Bootstrap.php<br />
      |   |&#8211; configs<br />
      |   |   `&#8211; application.ini<br />
      |   |&#8211; controllers<br />
      |   |   |&#8211; ErrorController.php<br />
      |   |   `&#8211; IndexController.php<br />
      |   |&#8211; models<br />
      |   `&#8211; views<br />
      |       |&#8211; helpers<br />
      |       `&#8211; scripts<br />
      |           |&#8211; error<br />
      |           |   `&#8211; error.phtml<br />
      |           `&#8211; index<br />
      |               `&#8211; index.phtml<br />
      |&#8211; docs<br />
      |&#8211; library<br />
      |&#8211; public<br />
      |   |&#8211; .htaccess<br />
      |   `&#8211; index.php<br />
      `&#8211; tests<br />
          |&#8211; application<br />
          |   `&#8211; bootstrap.php<br />
          |&#8211; library<br />
          |   `&#8211; bootstrap.php<br />
          `&#8211; phpunit.xml</p>
<p>Below is a slight modification of the default architecture where by you can organize separate model-view-controllers for different projects. Other option is to organize project specific files under modules folder.</p>
<p>   |&#8211; /sites<br />
   |&#8211;<br />
      `&#8211; Bootstrap.php<br />
      |&#8211; applicationONE<br />
      |   |   |&#8211; configs<br />
      |   |   `&#8211; application.ini<br />
      |   |&#8211; controllers<br />
      |   |   `&#8211; ErrorController.php<br />
      |   |   `&#8211; IndexController.php<br />
      |   |&#8211; modules (application specific modules)<br />
      |   |&#8211; models<br />
      |   `&#8211; views<br />
      |       |&#8211; helpers<br />
      |       `&#8211; scripts<br />
      |           |&#8211; error<br />
      |           |&#8211; index<br />
      |&#8211; library<br />
      |   |&#8211; Zend<br />
      |   |&#8211; Pear (Other libraries)<br />
    |&#8211; /var/www (public access directory &#8211; web root of the server will be set to this directory )<br />
      |   `&#8211; .htaccess<br />
      |   `&#8211; index.php<br />
	  |&#8211; images<br />
	  |&#8211; scripts<br />
	  |&#8211; css</p>
<p><strong>Refer to Zend&#8217;s Application Directory Layout for additional information</strong></p>
<p><a href="http://framework.zend.com/wiki/display/ZFDEV/Choosing+Your+Application%27s+Directory+Layout">Zend: OLD Layout Architecture</a> (Deprecated)</p>
<p><a href="http://framework.zend.com/wiki/display/ZFPROP/Zend+Framework+Default+Project+Structure+-+Wil+Sinclair">Zend: NEW Layout Architecture </a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/zends-directory-structure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Zend Framework &#8211; for Beginners</title>
		<link>http://kurinchilamp.kurinchilion.com/2010/03/setting-up-zend-framework-for-beginners.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2010/03/setting-up-zend-framework-for-beginners.html#comments</comments>
		<pubDate>Thu, 25 Mar 2010 10:41:26 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend for beginner]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[zend step by step installation]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=795</guid>
		<description><![CDATA[Download the latest version of Zend framework from http://framework.zend.com/download/latest At the time of writing it was 1.10.2 available at Zend 1.10.2 $ pwd /tmp $ wget http://framework.zend.com/releases/ZendFramework-1.10.2/ZendFramework-1.10.2.tar.gz $ mkdir /opt/zendframework $ tar -C /opt/zendframework -zxvf ZendFramework-1.10.2.tar.gz $ cd /opt/zendframework Create a symbolic link to the downloaded zend framework release in order to help ease maintaining [...]]]></description>
			<content:encoded><![CDATA[<p>Download the latest version of <strong>Zend framework</strong> from<br />
<a href="http://framework.zend.com/download/latest">http://framework.zend.com/download/latest</a></p>
<p>At the time of writing it was 1.10.2 available at <a href="http://framework.zend.com/releases/ZendFramework-1.10.2/ZendFramework-1.10.2.tar.gz">Zend 1.10.2</a>  </p>
<p><strong>$ pwd</strong><br />
/tmp</p>
<p><strong>$ wget http://framework.zend.com/releases/ZendFramework-1.10.2/ZendFramework-1.10.2.tar.gz</strong><br />
<span id="more-795"></span><br />
<strong>$ mkdir /opt/zendframework<br />
$ tar -C /opt/zendframework -zxvf ZendFramework-1.10.2.tar.gz<br />
$ cd /opt/zendframework</strong></p>
<p>Create a symbolic link to the downloaded zend framework release in order to help ease maintaining different releases</p>
<p><strong>$ ln -s ZendFramework-1.10.2.tar.gz currentzend</strong></p>
<p>Edit <strong>php.ini</strong> to include the path to the symbolic link created for zend release</p>
<p><strong>$ vi /etc/php5/apache2/php.ini</strong><br />
<em><br />
; UNIX: &#8220;/path1:/path2&#8243;<br />
include_path = &#8220;.:/opt/zendframework/currentzend&#8221;</em></p>
<p>In order to do command line execution in zend, we need to set up the PHP CLI by again editing <em>php.ini for the cli</em></p>
<p><strong>$ vi /etc/php5/cli/php.ini</strong><br />
<em>; UNIX: &#8220;/path1:/path2&#8243;<br />
include_path = &#8220;.:/opt/zendframework/currentzend&#8221;</em></p>
<p>For all users, set the path to Zend&#8217;s bin directory<br />
<strong>$ vi ~/.bashrc</strong></p>
<p>and add the line<br />
<em>PATH=$PATH:/opt/zendframework/currentzend/bin</em></p>
<p>Restart apache for the changes to take effect<br />
<strong>$ /etc/init.d/apache2 restart</strong></p>
<p>To check if the changes take place as expected, type<br />
<strong>$ zf.sh show version</strong><br />
and you should get<br />
<em>Zend Framework Version 1.10.2</em></p>
<p>Now, we move into setting up Zend framework</p>
<p><strong>$ cd /var/www<br />
$ zf.sh create project myzend</strong></p>
<p>This will set up the MVC zend structure. Copy the Zend folder into your new project &#8220;<strong>myzend</strong>&#8221;</p>
<p><strong>$ cp -r /opt/zendframework/currentzend/library/Zend /var/www/myzend/library/Zend</strong></p>
<p>Now go to your project to test if the installation was successful by typing<br />
<strong>http://localhost/myzend/public/</strong></p>
<p>This should open up the welcome page to zend framework.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2010/03/setting-up-zend-framework-for-beginners.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF and Byte Order Mark (BOM)</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/11/utf-and-byte-order-mark-bom.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/11/utf-and-byte-order-mark-bom.html#comments</comments>
		<pubDate>Thu, 12 Nov 2009 01:09:15 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[BOM]]></category>
		<category><![CDATA[Byte Order Mark]]></category>
		<category><![CDATA[multi-lingual website]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[Unicode Transformation Format]]></category>
		<category><![CDATA[UTF]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=707</guid>
		<description><![CDATA[UTF abbr. Unicode Transformation Format is a super set of characters that facilitates the display of characters from ALL languages that is currently in use. BOM stands for Byte Order Mark (also known as ZERO WIDTH NON-BREAKING SPACE) appearing at the beginning of a data stream to define the byte order (whether it is little [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UTF</strong> <em>abbr.</em> <strong>Unicode Transformation Format </strong>is a super set of characters that facilitates the display of characters from ALL languages that is currently in use. </p>
<p><strong>BOM </strong>stands for <strong>Byte Order Mark </strong>(also known as <strong>ZERO WIDTH NON-BREAKING SPACE</strong>) appearing at the beginning of a data stream to define the byte order (whether it is <em>little endian </em>or <em>big endian</em>). BOM is to indicate that the file is <strong>Unicode </strong>based.</p>
<p><strong>Possible problem caused by Byte Order Mark</strong><br />
In IE6, it will send the dispaly into quirks mode with its presence before &#8220;&lt;DOCTYPE &#8230;&#8221;</p>
<p><strong>How to check the presence of BOM?</strong><br />
View the source code of the page that does not display correctly in a user agent. Or, open the file in the editor which does not support UTF encoding to see the BOM&#8217;s signature on the files.</p>
<p><em>Suggestion</em><br />
If the user-agent gives problem when you program for multi-lingual websites, check the editor settings to see what format is being used for saving program files. Notepad++ has the option to convert files to UTF and to UTF without BOM. Use the appropriate settings to convert your files.</p>
<p>A character set related tutorial on W3C site can be <a href="http://www.w3.org/International/tutorials/tutorial-char-enc/">found here</a></p>
<p>Byte Order Mark on <a href="http://en.wikipedia.org/wiki/Byte_order_mark">Wiki</a></p>
<p>Article on <a href="http://randomchaos.com/documents/?source=php_and_unicode">PHP and UTF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/11/utf-and-byte-order-mark-bom.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to include PEAR libraries with CakePHP?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/10/how-to-include-pear-libraries-with-cakephp.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/10/how-to-include-pear-libraries-with-cakephp.html#comments</comments>
		<pubDate>Sat, 10 Oct 2009 08:29:49 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cakePHP]]></category>
		<category><![CDATA[include pear in cakephp]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[Pear library]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=696</guid>
		<description><![CDATA[Suggested solutions from other sites: 1) Modify /config/paths.php 2) Create separate php.ini settings file with the path to PEAR library 3) Modify the app_controller.php with the PEAR path settings My preference is to add the PEAR library to the &#8220;vendors&#8221; folder and to modify the app_controller to have the PEAR path included through it. if( [...]]]></description>
			<content:encoded><![CDATA[<p><em>Suggested solutions from other sites:</em><br />
1) Modify /config/paths.php<br />
2) Create separate php.ini settings file with the path to PEAR library<br />
3) Modify the app_controller.php with the PEAR path settings</p>
<p>My preference is to add the PEAR library to the &#8220;vendors&#8221; folder and to modify the app_controller to have the PEAR path included through it.</p>
<p><strong>if( file_exists(VENDORS.&#8217;Pear&#8217;)){<br />
    ini_set(&#8216;include_path&#8217;, ini_get(&#8216;include_path&#8217;) . PATH_SEPARATOR . PEAR);<br />
}</strong></p>
<p>Above solution suggested at <a href="https://trac.cakephp.org/ticket/263">CakePHP&#8217;s trac </a></p>
<p>Depending on the library that you want to get included in the programs, add the library to the respective view</p>
<p><strong>App::import(&#8216;vendor&#8217;, &#8216;XML_Feed_Parser&#8217;, array(&#8216;file&#8217; => &#8216;../vendors/pear/XML/Feed/Parser.php&#8217;));</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/10/how-to-include-pear-libraries-with-cakephp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: What is PEAR?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/10/php-what-is-pear.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/10/php-what-is-pear.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 17:23:00 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[pear settings]]></category>
		<category><![CDATA[php.ini]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=694</guid>
		<description><![CDATA[PEAR stands for PHP Extension and Application Repository. To learn more about the PEAR library click here If you are beginner, the following link will help you tread with the library usage PEAR Manual Installation instructions clearly walks through the steps for PEAR configuration. There may be cases where you may want to use PEAR [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PEAR </strong>stands for <strong>PHP Extension and Application Repository</strong>.</p>
<p>To learn more about the PEAR library <a href="http://pear.php.net/manual/en/about.pear.php" target="_new">click here </a></p>
<p>If you are beginner, the following link will help you tread with the library usage <a href="http://pear.php.net/manual/en/installation.php" target="_new">PEAR Manual</a></p>
<p>Installation instructions clearly walks through the steps for PEAR configuration. There may be cases where you may want to use PEAR libraries for specific projects only in which case you can install PEAR library for that specific purpose. To use it in projects, PEAR path should be set in <strong>php.ini </strong>settings or should be included in the project configuration&#8217;s physical path.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/10/php-what-is-pear.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

