<?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>Bala-Krishna &#187; PHP Function</title>
	<atom:link href="http://www.bala-krishna.com/category/php-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bala-krishna.com</link>
	<description>Web Developer &#38; Internet Marketing Consultant</description>
	<lastBuildDate>Fri, 19 Mar 2010 12:56:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Fix Wordpress Posts Missed Schedule Issue</title>
		<link>http://www.bala-krishna.com/how-to-fix-wordpress-posts-missed-schedule-issue/</link>
		<comments>http://www.bala-krishna.com/how-to-fix-wordpress-posts-missed-schedule-issue/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:58:52 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[Wordpress Widget]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=725</guid>
		<description><![CDATA[
			
				
			
		
Word Press have missed schedule issue from 2.7 version onwards. Word Press post scheduling was working fine upto Â  2.6.5 version as many of users reported on web. Â You can schedule wordpress post to publish on a specified time. but when time comes post can not publish and shows missed schedule in the admin area. [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/how-to-fix-wordpress-posts-missed-schedule-issue/&title=How+to+Fix+Wordpress+Posts+Missed+Schedule+Issue&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-fix-wordpress-posts-missed-schedule-issue%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-fix-wordpress-posts-missed-schedule-issue%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Word Press have missed schedule issue from 2.7 version onwards. Word Press post scheduling was working fine upto Â  2.6.5 version as many of users reported on web. Â You can schedule wordpress post to publish on a specified time. but when time comes post can not publish and shows missed schedule in the admin area. Â According to WP guys, this is not the issue that Word Press guys can fix. This issue comes when your web server can not properly execute wp-cron process. Â New wordpress wp-cron method run wp-cron in separate process that rely on web server configuration. Everytime Word Press loads it looks for wp-cron whether it should be run or not based on the time it was last run.</p>
<p><a href="http://www.bala-krishna.com/wp-content/uploads/2010/03/wordpress-missed-schedule-issue.png"><img class="aligncenter size-full wp-image-729" title="wordpress-missed-schedule-issue" src="http://www.bala-krishna.com/wp-content/uploads/2010/03/wordpress-missed-schedule-issue.png" alt="" width="258" height="79" /></a></p>
<p>Here are some reason that prevent Word Press to run wp-cron correctly.</p>
<ul>
<li>Server doesn&#8217;t have DNS, and so it can&#8217;t figure out who &#8220;example.com&#8221; is, even though it is *itself*.</li>
<li>Server administrators, in a misguided attempt at security, have blocked &#8220;loopback&#8221; requests, so it can&#8217;t actually make a call back to itself.</li>
<li>Server is running something called &#8220;mod_security&#8221; or similar, which actively blocks the call due to brain-dead configuration.</li>
</ul>
<p>There is simple to complex workaround to solve this issue. This problem automatically fix when your server is configured to run wp-cron properly but it require server root access and extensive server administration knowledge. So server configuration method is simply not for everyone to use. There is simple workaround to fix this issue that force wordpress to run wp-cron using alternative method that does not rely on web server configuration. To fix the issue add below line in the wp-config.php file. This line can be add anywhere in the wp-config.php file.</p>
<pre class="brush: php;">
define(â€˜ALTERNATE_WP_CRONâ€™, true);
</pre>
<p>This should restore wordpress schedule functionality. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/how-to-fix-wordpress-posts-missed-schedule-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Fix Wordpress MU Redirect Loop Installation Error</title>
		<link>http://www.bala-krishna.com/how-to-fix-wordpress-mu-redirect-loop-installation-error/</link>
		<comments>http://www.bala-krishna.com/how-to-fix-wordpress-mu-redirect-loop-installation-error/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 12:10:34 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[Browser Stuff]]></category>
		<category><![CDATA[Bug Fix]]></category>
		<category><![CDATA[Error Log]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[Wordpress Widget]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=573</guid>
		<description><![CDATA[
			
				
			
		
I recently encounter this issue on my client wordpress mu blog.  When i open main blog page after installation an infinite loop occur and stop at dead end in Firefox. I searched a lot about this on wordpress forum. Surprising, issue is stated everywhere in the forums and blog but no solution was suggested.
Why Redirect Loop?
The issue [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/how-to-fix-wordpress-mu-redirect-loop-installation-error/&title=How+to+Fix+Wordpress+MU+Redirect+Loop+Installation+Error&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-fix-wordpress-mu-redirect-loop-installation-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-fix-wordpress-mu-redirect-loop-installation-error%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I recently encounter this issue on my client wordpress mu blog.  When i open main blog page after installation an infinite loop occur and stop at dead end in Firefox. I searched a lot about this on wordpress forum. Surprising, issue is stated everywhere in the forums and blog but no solution was suggested.</p>
<p><strong>Why Redirect Loop?</strong></p>
<p>The issue arise because database was not created during wordpress installation but word press config file was written. WordPress uses wp-config.php file to store database configuration.  If WordPress find this file in the  installation directory then no further installation procedure begin. WordPress now look at DB to load default blog but there is no table in the database. Again, control goes to install procedure but WordPress understand blog already installed because WordPress config file is present in root folder. Once again WordPress try to load blog from database and redirect loop occur.  I hope WordPress guys will fix this in future releases.</p>
<p><strong>The Fix</strong></p>
<p>The fix is very simple. Simply, rename or delete WordPress config file and re-install wordpress mu.  Make sure database user you are using during installation have sufficient permission to create and manipulate database tables.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/how-to-fix-wordpress-mu-redirect-loop-installation-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix WordPress RSS Feed XML Parsing Errors &#8211; XML or text declaration not at start of entity</title>
		<link>http://www.bala-krishna.com/fix-wordpress-rss-feed-xml-parsing-errors-xml-or-text-declaration-not-at-start-of-entity/</link>
		<comments>http://www.bala-krishna.com/fix-wordpress-rss-feed-xml-parsing-errors-xml-or-text-declaration-not-at-start-of-entity/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:41:37 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=560</guid>
		<description><![CDATA[
			
				
			
		
Today, i  discovered that my blog feed was showing error in Firefox and other browsers.  This error comes if white space of empty line at the start of xml feed content. Your xml feed content should start with xml declaration without white space or empty line. Blank lines or white space can be introduced by [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/fix-wordpress-rss-feed-xml-parsing-errors-xml-or-text-declaration-not-at-start-of-entity/&title=Fix+WordPress+RSS+Feed+XML+Parsing+Errors+&#8211;+XML+or+text+declaration+not+at+start+of+entity&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Ffix-wordpress-rss-feed-xml-parsing-errors-xml-or-text-declaration-not-at-start-of-entity%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Ffix-wordpress-rss-feed-xml-parsing-errors-xml-or-text-declaration-not-at-start-of-entity%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Today, i  discovered that my blog feed was showing error in Firefox and other browsers.  This error comes if white space of empty line at the start of xml feed content. Your xml feed content should start with xml declaration without white space or empty line. Blank lines or white space can be introduced by theme code, plugins, wordpress code or wordpress configuration file. A quick fix is check files you have recently edited.</p>
<p><a href="http://www.bala-krishna.com/wp-content/uploads/2009/10/wordpress-rss-feed-error.gif"><img class="alignleft size-full wp-image-561" title="Wordpress RSS Feed Error" src="http://www.bala-krishna.com/wp-content/uploads/2009/10/wordpress-rss-feed-error.gif" alt="Wordpress RSS Feed Error" width="468" height="125" /></a></p>
<div style="clear:both;"></div>
<p><strong>How to Fix</strong></p>
<ul>
<li>Deactivate all plug-ins loaded and activate plug-in one by one to catch exact plug-in creating problem.</li>
<li>Try disabling wordpress cache plug-ins. Wordpress cache plugin don&#8217;t work well with some hosting.</li>
<li>Check your theme files, wp-config.php file for blank lines. It is hard and time consuming to check all wordpress core files. Thanks yo fiyaga for usefull wordpress plugin &#8220;<a rel="nofollow" href="http://wordpress.org/extend/plugins/fix-rss-feed/" target="_blank">Fix RSS Feed</a>&#8221; that automatically detect blank or white space in the wordpress core files.</li>
<li>Make sure to ping your feed in feedburner or similar service you are using.</li>
</ul>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/fix-wordpress-rss-feed-xml-parsing-errors-xml-or-text-declaration-not-at-start-of-entity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP Call to undefined function vendor() Error</title>
		<link>http://www.bala-krishna.com/cakephp-call-to-undefined-function-vendor-error/</link>
		<comments>http://www.bala-krishna.com/cakephp-call-to-undefined-function-vendor-error/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 16:41:19 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP MVC Framework]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=544</guid>
		<description><![CDATA[
			
				
			
		
Vendor() function basically used to load third party library in CakePHP. This function have been deprecated in the recent CakePHP releases.  The vendor function in earlier CakePHP releases has been replace with new App::import method that is more user friendly and allow you to include third party library in several ways.
To fix the issue simply replace [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/cakephp-call-to-undefined-function-vendor-error/&title=CakePHP+Call+to+undefined+function+vendor()+Error&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fcakephp-call-to-undefined-function-vendor-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fcakephp-call-to-undefined-function-vendor-error%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Vendor() function basically used to load third party library in CakePHP. This function have been deprecated in the recent CakePHP releases.  The vendor function in earlier CakePHP releases has been replace with new <strong><em>App::import</em></strong> method that is more user friendly and allow you to include third party library in several ways.</p>
<p>To fix the issue simply replace vendor function with new method.  New import method return boolean true or false depend on the library loaded or not.  This is useful in some context.  With new import method you have option to verify third party library loading and act accordingly so your application never fail.</p>
<p><strong>Old Method</strong></p>
<pre class="brush: php;">vendor('facebook/facebook');</pre>
<p><strong>New Method</strong></p>
<pre class="brush: php;">App::import('Vendor', 'facebook/facebook');</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/cakephp-call-to-undefined-function-vendor-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create JavaScript Confirm Box for Record Deletion</title>
		<link>http://www.bala-krishna.com/create-javascript-confirm-box-for-record-deletion/</link>
		<comments>http://www.bala-krishna.com/create-javascript-confirm-box-for-record-deletion/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 03:44:13 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[Browser Stuff]]></category>
		<category><![CDATA[Crawler]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[Window Application]]></category>
		<category><![CDATA[confirm function]]></category>
		<category><![CDATA[delete operation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=455</guid>
		<description><![CDATA[
			
				
			
		
Confirmation before deletion of record is very useful to preserve data from accidental record deletion. With confirmation process will be in two steps. Here is the javascript way to ask user whether they want to delete record or not.
&#60;a onclick=&#8221;return confirm(&#8216;Are you sure you want to delete?&#8217;)&#8221; href=&#8221;page.page?act=delete&#38;id=1&#8243;&#62;Delete&#60;/a&#62;

You can see above example. The method is [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/create-javascript-confirm-box-for-record-deletion/&title=Create+JavaScript+Confirm+Box+for+Record+Deletion&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fcreate-javascript-confirm-box-for-record-deletion%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fcreate-javascript-confirm-box-for-record-deletion%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Confirmation before deletion of record is very useful to preserve data from accidental record deletion. With confirmation process will be in two steps. Here is the javascript way to ask user whether they want to delete record or not.</p>
<p><strong><em>&lt;a onclick=&#8221;return confirm(&#8216;Are you sure you want to delete?&#8217;)&#8221; href=&#8221;page.page?act=delete&amp;id=1&#8243;&gt;Delete&lt;/a&gt;<br />
</em></strong></p>
<p>You can see above example. The method is very easy.?  if you click OK.. then function will return true and browser navigate href URL otherwise false value will be return and your click will not work.</p>
<p>You can achieve same functionality by wraping above method in a function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/create-javascript-confirm-box-for-record-deletion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure PHP Application with Suhosin Hardened-PHP</title>
		<link>http://www.bala-krishna.com/secure-php-application-with-suhosin-hardened-php/</link>
		<comments>http://www.bala-krishna.com/secure-php-application-with-suhosin-hardened-php/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 16:25:20 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[hardened-php]]></category>
		<category><![CDATA[Suhosin]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=416</guid>
		<description><![CDATA[
			
				
			
		
Suhosin is a security product released by Hardened-PHP to secure your PHP application. Hardened-PHP is founded by Stefan Esser, Christopher Kunz and Peter Prochaska from Germany with the primary goal to help php web developers, development organization to secure PHP web application. They also provide searvice to find out security holes in your php applicatn [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/secure-php-application-with-suhosin-hardened-php/&title=Secure+PHP+Application+with+Suhosin+Hardened-PHP&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fsecure-php-application-with-suhosin-hardened-php%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fsecure-php-application-with-suhosin-hardened-php%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Suhosin </strong>is a security product released by Hardened-PHP to secure your PHP application. Hardened-PHP is founded by Stefan Esser, Christopher Kunz and Peter Prochaska from Germany with the primary goal to help php web developers, development organization to secure PHP web application. They also provide searvice to find out security holes in your php applicatn by examining application code.</p>
<p>Suhosin comes with two component that can work separately or in collboration. The first component called Suhosin patch that help you to secure your application from some low-lever vulnerabilities like bufferoverflows. The second component comes as PHP extension that reduce risk of other security flaws.</p>
<p><a title="Hardened PHP Suhosin Security Project" href="http://www.hardened-php.net/suhosin.127.html" target="_blank">Click Here to Learn More</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/secure-php-application-with-suhosin-hardened-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Highlight PHP Source Code in Wordpress Post</title>
		<link>http://www.bala-krishna.com/how-to-highlight-php-source-code-in-wordpress-post/</link>
		<comments>http://www.bala-krishna.com/how-to-highlight-php-source-code-in-wordpress-post/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 17:13:38 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[Wordpress Widget]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sourcecode]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=350</guid>
		<description><![CDATA[
			
				
			
		
PHP Source Code Highlighter (syntaxhighlighter) Wordpress plugin allow you to post php code inside your wordpress post with syntax highlight and line number. The plugin preserve code formatting and do not encode character until you do manually.
Supports the following languages:
* C++ &#8212; `cpp`, `c`, `c++`
* C# &#8212; `c#`, `c-sharp`, `csharp`
* CSS &#8212; `css`
* Delphi &#8212; [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/how-to-highlight-php-source-code-in-wordpress-post/&title=How+to+Highlight+PHP+Source+Code+in+Wordpress+Post&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-highlight-php-source-code-in-wordpress-post%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-highlight-php-source-code-in-wordpress-post%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">PHP Source Code Highlighter (syntaxhighlighter)</a> Wordpress plugin allow you to post php code inside your wordpress post with syntax highlight and line number. The plugin preserve code formatting and do not encode character until you do manually.</p>
<p><strong>Supports the following languages:</strong></p>
<p>* C++ &#8212; `cpp`, `c`, `c++`<br />
* C# &#8212; `c#`, `c-sharp`, `csharp`<br />
* CSS &#8212; `css`<br />
* Delphi &#8212; `delphi`, `pascal`<br />
* Java &#8212; `java`<br />
* JavaScript &#8212; `js`, `jscript`, `javascript`<br />
* PHP &#8212; `php`<br />
* Python &#8212; `py`, `python`<br />
* Ruby &#8212; `rb`, `ruby`, `rails`, `ror`<br />
* SQL &#8212; `sql`<br />
* VB &#8212; `vb`, `vb.net`<br />
* XML/HTML &#8212; `xml`, `html`, `xhtml`, `xslt`</p>
<p><strong>How to Use Wordpress Syntax/Source Code Highlight Plugin</strong></p>
<p>This plugin do not add any button in the editor to wrap code automatically. Hope this feature will be added soon. You need to wrap you code within <strong> &lt;/strong&gt;add your php code here &lt;strong&gt;[/source code]</strong> tag.</p>
<p><strong>Download:</strong> <a href="http://downloads.wordpress.org/plugin/syntaxhighlighter.zip" target="_blank">http://downloads.wordpress.org/plugin/syntaxhighlighter.zip</a><br />
<strong>Live Demo/Screenshot:</strong> <a href="http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string" target="_blank">http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/how-to-highlight-php-source-code-in-wordpress-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Clean Special Characters From PHP String</title>
		<link>http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string/</link>
		<comments>http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 12:30:36 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[windows xp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=348</guid>
		<description><![CDATA[
			
				
			
		
If you are looking for the PHP special characters clean function then this post might be useful for you. This function can used to remove special character as well as able to replace specific character with other equivalent character or string.
Here is detailed explanation of function:
$specialCharacters Array: This array used to replace special character with [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string/&title=How+To+Clean+Special+Characters+From+PHP+String&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-clean-special-characters-from-php-string%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fhow-to-clean-special-characters-from-php-string%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you are looking for the PHP special characters clean function then this post might be useful for you. This function can used to remove special character as well as able to replace specific character with other equivalent character or string.</p>
<p>Here is detailed explanation of function:</p>
<p><strong>$specialCharacters Array:</strong> This array used to replace special character with other character or string. if you want to interchange (+) with (plus) then you need to specify in the array. You can add/remove array element according to your requirement.</p>
<p><strong>strtr function:</strong> This function used to replace other language special characters to plain English character. You can remove this line safely but ensure before that these characters not in your string and you don&#8217;t need to remove them.<br />
Last 4 line used to remove other unknown unwanted special characters.<br />
<span id="more-348"></span></p>
<pre class="brush: php;">
function just_clean($string)
{
// Replace other special chars
$specialCharacters = array(
'#' =&gt; '',
'$' =&gt; '',
'%' =&gt; '',
'&amp;' =&gt; '',
'@' =&gt; '',
'.' =&gt; '',
'€' =&gt; '',
'+' =&gt; '',
'=' =&gt; '',
'§' =&gt; '',
'\\' =&gt; '',
'/' =&gt; '',
);&lt;/code&gt;

while (list($character, $replacement) = each($specialCharacters)) {
$string = str_replace($character, '-' . $replacement . '-', $string);
}

$string = strtr($string,
&quot;ÀÁÂÃÄÅ? áâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ&quot;,
&quot;AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn&quot;
);

// Remove all remaining other unknown characters
$string = preg_replace('/[^a-zA-Z0-9\-]/', ' ', $string);
$string = preg_replace('/^[\-]+/', '', $string);
$string = preg_replace('/[\-]+$/', '', $string);
$string = preg_replace('/[\-]{2,}/', ' ', $string);

return $string;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/how-to-clean-special-characters-from-php-string/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Wordpress 406 Not Acceptable Error Fix</title>
		<link>http://www.bala-krishna.com/wordpress-406-not-acceptable-error-fix/</link>
		<comments>http://www.bala-krishna.com/wordpress-406-not-acceptable-error-fix/#comments</comments>
		<pubDate>Thu, 22 May 2008 10:38:06 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[Bug Fix]]></category>
		<category><![CDATA[Business Talk]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Directory]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[Window Application]]></category>
		<category><![CDATA[Word Press]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[Wordpress Widget]]></category>
		<category><![CDATA[wordpress error]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=332</guid>
		<description><![CDATA[
			
				
			
		
I just received &#8220;Not Acceptable Error while i tried to edit post in Word Press 2.5. Earlier, It was working fine but in the previous post i get annoying error when i tried to save and continue my article. But soon i realize cause of the error. Again, the error was due to apache web [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/wordpress-406-not-acceptable-error-fix/&title=Wordpress+406+Not+Acceptable+Error+Fix&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fwordpress-406-not-acceptable-error-fix%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fwordpress-406-not-acceptable-error-fix%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I just received &#8220;Not Acceptable Error while i tried to edit post in Word Press 2.5. Earlier, It was working fine but in the previous post i get annoying error when i tried to save and continue my article. But soon i realize cause of the error. Again, the error was due to apache web server mod-security rules <strong>SecFilterEngine On</strong>. The exact text of the error is &#8220;<strong>Error 406, Not Acceptable. An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server.”</strong></p>
<p><a href="http://www.bala-krishna.com/wp-content/uploads/2008/05/notacceptable406-wordpress-error.jpg"><img class="aligncenter size-full wp-image-334" title="notacceptable406-wordpress-error" src="http://www.bala-krishna.com/wp-content/uploads/2008/05/notacceptable406-wordpress-error.jpg" alt="" width="500" height="77" /></a><br />
Here is the quick fix the error:</p>
<ol>
<li>Download .htaccess file from your root directory or create one if not exist.</li>
<li>Add following Line in .htaccess file.</li>
<li><strong>&lt;IfModule mod_security.c&gt;<br />
&lt;Files post.php&gt;<br />
SecFilterEngine Off<br />
SecFilterScanPOST Off<br />
&lt;/Files&gt;<br />
&lt;/IfModule&gt;</strong></li>
<li>If <strong>&lt;IfModule mod_security.c&gt;</strong> line already in your .htaccess file then place only <strong>&lt;Files..&gt;&lt;/Files&gt; </strong>block inside if module block.</li>
<li>Save file and upload file to your host root directory.</li>
<li>All done..</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/wordpress-406-not-acceptable-error-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Fatal Error Fix: Can&#8217;t use method return value in write context</title>
		<link>http://www.bala-krishna.com/php-fatal-error-fix-cant-use-method-return-value-in-write-context/</link>
		<comments>http://www.bala-krishna.com/php-fatal-error-fix-cant-use-method-return-value-in-write-context/#comments</comments>
		<pubDate>Fri, 16 May 2008 07:05:11 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Browser Stuff]]></category>
		<category><![CDATA[Bug Fix]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[PHP Function]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[empty function]]></category>
		<category><![CDATA[php fatal error]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=329</guid>
		<description><![CDATA[
			
				
			
		
PHP compiler generate fatal error if you use function return value in read/write context.  Although this is not applicable for all PHP supported function but PHP function like empty does not support use of the function in this way. In other words, php empty function  cannot check the return value of a function [...]]]></description>
			<content:encoded><![CDATA[<a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.bala-krishna.com/php-fatal-error-fix-cant-use-method-return-value-in-write-context/&title=PHP+Fatal+Error+Fix:+Can&#8217;t+use+method+return+value+in+write+context&srcURL=http://www.bala-krishna.com" target="_blank" rel="nofollow"><img
src="http://www.bala-krishna.com/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.bala-krishna.com%2Fphp-fatal-error-fix-cant-use-method-return-value-in-write-context%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.bala-krishna.com%2Fphp-fatal-error-fix-cant-use-method-return-value-in-write-context%2F&amp;source=balakrishna&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>PHP compiler generate fatal error if you use function return value in read/write context.  Although this is not applicable for all PHP supported function but PHP function like <strong><em>empty</em></strong> does not support use of the function in this way. In other words, <strong>php empty function</strong> <span id="intelliTxt"> cannot check the return value of a function or method. It can only check variables so use only variable inside empty function. Any other function or expression inside empty function will lead to generate fatal error.</span></p>
<p><strong>Example Problem Solution:<br />
</strong></p>
<blockquote><p><strong>Wrong<br />
</strong>if(empty(trim($testimony))) echo &#8220;Empty&#8221;; else echo &#8220;Not Empty&#8221;;</p>
<p><strong>Correct<br />
</strong>$testimony = trim($testimony);<strong><br />
</strong>if(empty($testimony)) echo &#8220;Empty&#8221;; else echo &#8220;Not Empty&#8221;;</p></blockquote>
<blockquote><p><strong>Wrong<br />
</strong>if(empty($bobj-&gt;get_results(&#8216;post&#8217;)) { // Processing Code }</p>
<p><strong>Correct<br />
</strong>$tmp = $bobj-&gt;get_results(&#8216;post&#8217;);<br />
if(empty($tmp)) { // Processing Code }</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/php-fatal-error-fix-cant-use-method-return-value-in-write-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
