<?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 Tutorial</title>
	<atom:link href="http://www.bala-krishna.com/category/php-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bala-krishna.com</link>
	<description>Web Developer &#38; Internet Marketing Consultant</description>
	<lastBuildDate>Sat, 06 Mar 2010 13:07:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</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[<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 Run PHP5 at 1and1.com Linux Account</title>
		<link>http://www.bala-krishna.com/how-to-run-php5-at-1and1-com-linux-account/</link>
		<comments>http://www.bala-krishna.com/how-to-run-php5-at-1and1-com-linux-account/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 19:35:18 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=697</guid>
		<description><![CDATA[1&#38;1 Linux hosting still support PHP4 as default php processor for .php files. To run PHP5 you need to rename .php file as .php5 file. But it is hard to rename all application files at once.  You can use PHP5 in your account by following simple steps below:

Create a .htaccess file or edit .htaccess [...]]]></description>
			<content:encoded><![CDATA[<p>1&amp;1 Linux hosting still support PHP4 as default php processor for .php files. To run PHP5 you need to rename .php file as .php5 file. But it is hard to rename all application files at once.  You can use PHP5 in your account by following simple steps below:</p>
<ul>
<li>Create a .htaccess file or edit .htaccess file if you application already using</li>
<li>Add below lines on the top on file content<br />
<em>AddType x-mapp-php5 .php<br />
AddHandler x-mapp-php5 .php</em></li>
<li>Upload .htaccess file to root folder of your hosting account.</li>
</ul>
<p>Done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/how-to-run-php5-at-1and1-com-linux-account/feed/</wfw:commentRss>
		<slash:comments>1</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[<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>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[<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>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[<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>Useful Linux Shell Commands</title>
		<link>http://www.bala-krishna.com/useful-linux-shell-commands/</link>
		<comments>http://www.bala-krishna.com/useful-linux-shell-commands/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:14:06 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[PHP Tutorial]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[tail]]></category>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=67</guid>
		<description><![CDATA[ls : List files/directories in a current directory, equivalent to dir command in dos/windows.
 ls -al : Shows all files and directories with the details attributes for each file.
cd : Change directory
Examples:
 cd ~ : Change your directory to your home directory.
 cd &#8211; : Change to the  last directory you were in.

tail : [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ls :</strong> List files/directories in a current directory, equivalent to dir command in dos/windows.<br />
<strong> ls -al :</strong> Shows all files and directories with the details attributes for each file.</p>
<p><strong>cd : Change directory</strong><br />
Examples:<br />
<em> cd ~ :</em> Change your directory to your home directory.<br />
<em> cd &#8211; :</em> Change to the  last directory you were in.<br />
<strong></strong></p>
<p><strong>tail : Reads and display the end of the file<br />
</strong>Examples:<br />
<em> tail /var/www/me.txt</em><strong> </strong> : Display last 20 lines (by default) lines of the given file.<br />
<em> tail -f /var/www/me.txt</em><strong> </strong>: Watch the file continuously, while it&#8217;s being updated.<br />
<em> tail -400 /var/www/me.txt</em> : Print last 400 lines of the file to the screen.</p>
<p><strong>more : Open file one screen at a time.<br />
</strong>Examples:<br />
<em>more /etc/log.txt </em><strong>:</strong> Opens the file one screen at a time rather than all at once. Press Space to go to next page.</p>
<p><strong>pico : easy to use file editor<br />
</strong>Examples:<br />
<em> pico /home/mysite/public_html/you.html</em> : edit the you.html file from the public_html directory.</p>
<p><strong>vi : popular editor in linux, have lots of features but harder to use<br />
</strong>Examples:<br />
<em> vi /home/</em><em>mysite</em><em>/public_html/</em>you<em>.html</em> : edit the you.html from the public_html directory.</p>
<p><strong>grep : looks for certain patterns in files<br />
</strong>Examples:<br />
<em> grep root /etc/passwd :</em> shows all matches of root in /etc/passwd<br />
<em> grep -v root /etc/passwd </em>: shows all lines that do not match root</p>
<p><strong>touch : create an empty file<br />
</strong>Examples:<br />
<em> touch /home/</em><em>mysite</em><em>/</em><em>/public_html/new.html </em>: create an empty file called new.html in the directory <em>/home/</em><em>mysite</em><em>/</em><em>/public_html/</em></p>
<p><strong>ln : create&#8217;s &#8220;links&#8221; between files and directories<br />
</strong>Examples:<br />
<em> ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf</em> : Now you can edit /etc/httpd.conf rather than the original. changes will affect the orginal, however you can delete the link and it will not delete the original.</p>
<p><strong>rm : delete a file<br />
</strong>Examples:<br />
<em> rm filename.txt</em> : Deletes filename.txt, It will confirm you before deleting file.<br />
<em> rm -f filename.txt </em>: Deletes filename.txt without confirmation.<br />
<em> rm -rf tmp/</em> : Recursively deletes the directory tmp, and all files in it, including subdirectories.</p>
<p><strong>last : shows who logged in with the time<br />
</strong>Examples:<br />
<em> last -20 :</em> shows only the last 20 logins<br />
<em> last -20 -a </em>: shows last 20 logins, with the hostname in the last field</p>
<p><strong>netstat : shows all current network connections.</strong><br />
<em> netstat -an :</em> shows all connections to the server, the source and destination ips and ports.<br />
<em> netstat -rn :</em> shows routing table for all ips bound to the server.</p>
<p><strong>top : shows useful live system info<br />
</strong>processes in a table format, memory information, uptime and other useful info. This is excellent for managing your system processes, resources and ensure everything is working fine and your server isn&#8217;t bogged down. top then type <strong>Shift + M</strong> to sort by memory usage or <strong>Shift + P</strong> to sort by CPU usage</p>
<p><strong>ps: ps is short form of process status, equivalent to the top command. It&#8217;s used to show currently running processes with their PID.</strong></p>
<p>A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command).<br />
Examples:<br />
<em> ps U username :</em> shows processes for a certain user<br />
<em> ps aux :</em> shows all system processes<br />
<em> ps aux &#8211;forest </em>: shows all system processes like the above but organizes in a hierarchy that&#8217;s very useful!</p>
<p><strong>file : attempts to guess what type of file a file is by looking at it&#8217;s content.<br />
</strong>Examples:<br />
<em> file * </em>: prints out a list of all files/directories in a directory</p>
<p><strong>du : shows disk usage.<br />
</strong>Examples:<br />
<em> du -sh </em>: shows a summary of total disk space used in the current directory, including subdirectories.<br />
<em> du -sh *</em> : same as above, but for each file and directory. helpful when finding large files taking up space.</p>
<p><strong>wc : word count<br />
</strong>Examples:<br />
<em> wc -l filename.txt </em>: tells how many lines are in filename.txt</p>
<p><strong>cp : copy a file<br />
</strong>Examples:<br />
<em> cp filename filename.backup</em> : copies filename to filename.backup<br />
<em> cp -a /home/mysite/old/* /home/mysite/new/ </em>: copies all files, retaining permissions form one directory to another.</p>
<p><strong>kill: terminate a system process<br />
</strong>Examples:<br />
<em>Syntax</em>: kill -9 PID <em>Examples</em>: kill -9 431<br />
<em>Syntax</em>:  kill PID <em>Examples</em>: kill 10550</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/useful-linux-shell-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix Timestamp Conversion Tool Launched</title>
		<link>http://www.bala-krishna.com/unix-timestamp-conversion-tool-launched/</link>
		<comments>http://www.bala-krishna.com/unix-timestamp-conversion-tool-launched/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 17:23:31 +0000</pubDate>
		<dc:creator>Bala Krishna</dc:creator>
				<category><![CDATA[Browser Stuff]]></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>

		<guid isPermaLink="false">http://www.bala-krishna.com/?p=386</guid>
		<description><![CDATA[Just launched Unix Timestamp Conversion Tool. All of users of my website are welcome to test and use this tool. Please feel free to share your comments, bugs etc..


]]></description>
			<content:encoded><![CDATA[<p>Just launched Unix Timestamp Conversion Tool. All of users of my website are welcome to test and use this tool. Please feel free to share your comments, bugs etc..</p>
<p><a href="http://www.bala-krishna.com/web-tools/convert-date-time-to-unix-timestamp"><img class="aligncenter size-full wp-image-387" title="unix-timestamp-conversion-tool" src="http://www.bala-krishna.com/wp-content/uploads/2008/07/unix-timestamp-conversion-tool.jpg" alt="" width="500" height="209" /></a></p>
<p><a href="http://www.bala-krishna.com/web-tools/convert-date-time-to-unix-timestamp"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bala-krishna.com/unix-timestamp-conversion-tool-launched/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[<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[<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[<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>
	</channel>
</rss>
