<?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>Ramkumar K R &#187; PHP</title>
	<atom:link href="http://www.ramkumarkr.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ramkumarkr.com</link>
	<description>Another online scratchpad!</description>
	<lastBuildDate>Thu, 04 Mar 2010 15:13:37 +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>Starting LAMPP automatically on startup</title>
		<link>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html</link>
		<comments>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 09:54:54 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/starting-lampp-automatically-on-startup/</guid>
		<description><![CDATA[For starting LAMPP automatically on startup, add the following line to you /etc/rc.local file
/opt/lampp/lampp start
where /opt/lampp is the location where XAMPP files are kept. You will have to substitute the path to your XAMPP in the above command.
Do let me know whether it worked for you  
]]></description>
			<content:encoded><![CDATA[<p>For starting LAMPP automatically on startup, add the following line to you /etc/rc.local file</p>
<p>/opt/lampp/lampp start</p>
<p>where /opt/lampp is the location where XAMPP files are kept. You will have to substitute the path to your XAMPP in the above command.</p>
<p>Do let me know whether it worked for you <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/starting-lampp-automatically-on-startup.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Server did not recognize the value of HTTP Header SOAPAction</title>
		<link>http://www.ramkumarkr.com/server-did-not-recognize-the-value-of-http-header-soapaction.html</link>
		<comments>http://www.ramkumarkr.com/server-did-not-recognize-the-value-of-http-header-soapaction.html#comments</comments>
		<pubDate>Wed, 26 Mar 2008 06:53:21 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/server-did-not-recognize-the-value-of-http-header-soapaction/</guid>
		<description><![CDATA[Error messages are quite annoying for any one, I am not an exception for it..
This is the latest one I received when I was testing a webservice client using PHP NuSOAP library.. Well my client&#8217;s webserver is still running on PHP4 so I cant use the built in SOAPClient for PHP5  
I resolved this [...]]]></description>
			<content:encoded><![CDATA[<p>Error messages are quite annoying for any one, I am not an exception for it..</p>
<p>This is the latest one I received when I was testing a webservice client using PHP NuSOAP library.. Well my client&#8217;s webserver is still running on PHP4 so I cant use the built in SOAPClient for PHP5 <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I resolved this by modifying the usage of the NuSOAP soap client. Initially I tried a simple soap client when this error came, by when I tried the wsdl client, it worked fine. Change is only how you instantiate the soap client.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/server-did-not-recognize-the-value-of-http-header-soapaction.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is your application vulnerable to Cross Site Scripting (XSS)?</title>
		<link>http://www.ramkumarkr.com/is-your-application-vulnerable-to-cross-site-scripting-xss.html</link>
		<comments>http://www.ramkumarkr.com/is-your-application-vulnerable-to-cross-site-scripting-xss.html#comments</comments>
		<pubDate>Tue, 18 Mar 2008 10:37:42 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/is-your-application-is-vulnerable-to-cross-site-scripting-xss/</guid>
		<description><![CDATA[Well.. One of the security tests you need to do in your web application is to verify that it is free from cross site scripting vulnerability.
read more about cross site scripting (XSS) at http://en.wikipedia.org/wiki/Cross_site_scripting
Here is the simple test to verify whether your web form is vulnerable to XSS or not.
Just type in
&#60;script&#62;alert(&#8220;Testing for XSS&#8230;.. And [...]]]></description>
			<content:encoded><![CDATA[<p>Well.. One of the security tests you need to do in your web application is to verify that it is free from cross site scripting vulnerability.</p>
<p>read more about cross site scripting (XSS) at http://en.wikipedia.org/wiki/Cross_site_scripting</p>
<p>Here is the simple test to verify whether your web form is vulnerable to XSS or not.</p>
<p>Just type in</p>
<blockquote><p>&lt;script&gt;alert(&#8220;Testing for XSS&#8230;.. And this form is vulnerable to XSS&#8221;);&lt;/script&gt;</p></blockquote>
<p>Submit the form. Upon submitting the form, if you are seeing a javascript alert saying &#8220;Testing for XSS&#8230;.. And this form is vulnerable to XSS&#8221; , obviously your web form is not secure against XSS attacks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/is-your-application-vulnerable-to-cross-site-scripting-xss.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XAMPP an easy LAMP installation solution</title>
		<link>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html</link>
		<comments>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html#comments</comments>
		<pubDate>Mon, 25 Feb 2008 10:08:49 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/xampp-an-easy-lamp-installation-solution/</guid>
		<description><![CDATA[Earlier I had messed up my LAMP test server trying to upgrade PHP from 4 to 5 and it was a real headache till I got everything to work..
Someone asked me a question &#8211; is there a simple way to install everything (Apache, MySQL PHP with necessary modules) in one shot without configuring each and [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier I had <a href="http://ramkumar.lifeatsearch.com/messed-up-my-lamp-test-server/" title="Messed up my LAMP test server">messed up my LAMP test serve</a>r trying to upgrade PHP from 4 to 5 and it was a real headache till I got everything to work..</p>
<p>Someone asked me a question &#8211; is there a simple way to install everything (Apache, MySQL PHP with necessary modules) in one shot without configuring each and everything manually.. I had no clue that time but I understood that there is a solution for this..</p>
<p>Just browsed http://www.apachefriends.org/en/xampp.html and found proof that there is a solution available.</p>
<p>Have you tried this? I have to mess up my server again if I have to test this <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So let me see when time permits <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[Update] There wasn&#8217;t mysql enabled on PHP5 when I installed RHEL5 afresh. So I had to remove the rpms of PHP, stop httpd,vsftpd and mysqld forever. Installed XAMPP and everything is working perfectly now..</p>
<p>There is a bit of security issues in XAMPP (Not so big if you take care). So read their documents properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/xampp-an-easy-lamp-installation-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPIDS &#8211; PHP Intrusion Detection System</title>
		<link>http://www.ramkumarkr.com/phpids-php-intrusion-detection-system.html</link>
		<comments>http://www.ramkumarkr.com/phpids-php-intrusion-detection-system.html#comments</comments>
		<pubDate>Tue, 19 Feb 2008 07:38:21 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/phpids-php-intrusion-detection-system/</guid>
		<description><![CDATA[For those who are concerned about the security of their PHP powered websites, do not forget to check http://php-ids.org/ . I found this website today and I am too a newbie to this.. Looks great.. Will try and post my feedbacks.
Meanwhile do check http://www.alt-php-faq.org/local/115/ which guides you to fight the spammers out. I had posted [...]]]></description>
			<content:encoded><![CDATA[<p>For those who are concerned about the security of their PHP powered websites, do not forget to check <strong>http://php-ids.org/ </strong>. I found this website today and I am too a newbie to this.. Looks great.. Will try and post my feedbacks.</p>
<p>Meanwhile do check <strong>http://www.alt-php-faq.org/local/115/</strong> which guides you to fight the spammers out. I had posted earlier regarding the same at <a href="http://www.webreviewer.info/protect-your-web-forms-from-email-header-injection-attacks/" title="Protect your web forms">Protect your Web Forms from email header injections</a> , but here is the URL for the original article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/phpids-php-intrusion-detection-system.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Charts &#8211; Free SWF/Image Charting tools</title>
		<link>http://www.ramkumarkr.com/php-charts-free-swfimage-charting-tools.html</link>
		<comments>http://www.ramkumarkr.com/php-charts-free-swfimage-charting-tools.html#comments</comments>
		<pubDate>Mon, 18 Feb 2008 07:49:24 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/php-charts-free-swfimage-charting-tools/</guid>
		<description><![CDATA[I was researching some ready built charting libraries for displaying charts in PHP.
Following are the ones I found interesting and good ones to try..
http://quimby.gnus.org/circus/chart/chart-manual.php    &#8211; This one is a very lightweight charting library which creates image charts.
http://www.maani.us/charts/index.php?menu=Download    &#8211; With this one you can display dynamic charts in flash (requires [...]]]></description>
			<content:encoded><![CDATA[<p>I was researching some ready built charting libraries for displaying charts in PHP.</p>
<p>Following are the ones I found interesting and good ones to try..</p>
<p><strong>http://quimby.gnus.org/circus/chart/chart-manual.php</strong>    &#8211; This one is a very lightweight charting library which creates image charts.</p>
<p><strong>http://www.maani.us/charts/index.php?menu=Download</strong>    &#8211; With this one you can display dynamic charts in flash (requires flash player at client system)</p>
<p><strong>http://www.aditus.nu/jpgraph/</strong>    &#8211; This is another charting library with lot of features with support for PHP4 and PHP5. Its not so light as the download size is about 4.5 MB (Yet to try this one due to this reason)</p>
<p>If you know/have used any other good PHP charting libraries, please shout here !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/php-charts-free-swfimage-charting-tools.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal error: Call to undefined function mysql_connect() !!</title>
		<link>http://www.ramkumarkr.com/fatal-error-call-to-undefined-function-mysql_connect.html</link>
		<comments>http://www.ramkumarkr.com/fatal-error-call-to-undefined-function-mysql_connect.html#comments</comments>
		<pubDate>Wed, 13 Feb 2008 05:39:28 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/fatal-error-call-to-undefined-function-mysql_connect/</guid>
		<description><![CDATA[I was about to start using my first program on PHP5, then I received this irritating message.
I was using PHP4 these days, so this error was something which revisited after a long time. In PHP4 I new what it means and how to rectify.
The error indicates that PHP was unable to connect to the MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>I was about to start using my first program on PHP5, then I received this irritating message.</p>
<p>I was using PHP4 these days, so this error was something which revisited after a long time. In PHP4 I new what it means and how to rectify.</p>
<p>The error indicates that PHP was unable to connect to the MySQL DB and it is basically an error on the PHP installation/ missing library file.</p>
<p>Generally, one need to check following things in order to troubleshoot the current situation.</p>
<p>Is it PHP5 on which this error happened and are its after you migrated to PHP5? If then, one small peiece of information for you. MySQL support is not enabled by default in PHP5. You can read http://in.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5 for the reasons and how to troubleshoot.</p>
<p>Following are some other basic troubleshooting steps.</p>
<p><strong>Windows System</strong></p>
<ol>
<li>Make sure in your PHP.ini file , the mysql extension is enabled. Look for a line containing &#8216;extension=php_mysql.dll&#8217; and if there is a semicolon in front of this, its not enabled. So remove the semicolon to enable it.</li>
<li>Check for the extension directory path in php.ini &#8211; &#8216;extension_dir = &#8220;C:\Program Files\PHP5\ext&#8221;&#8216; . make sure the path is correct, and you have the extension files in it. For mysql extension, you will need php_mysql.dll .</li>
</ol>
<p>With this much, if mysql is present, you should not be seeing the error message again</p>
<p><strong>Linux System</strong></p>
<p>Make sure PHP is compiled with mysql support. Check http://in.php.net/mysql on the installation instructions.</p>
<p>If you are using PHP5 , mysql is not enabled by default <img src='http://www.ramkumarkr.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  (This is where the problem starts). So if you have PHP already installed, consider removing it and recompiling from the source with mysql support.</p>
<p>There are easier methods to set up LAMP systems. Please check  <a href="http://ramkumar.lifeatsearch.com/xampp-an-easy-lamp-installation-solution/" title="XAMPP">my post about XAMPP</a> too</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/fatal-error-call-to-undefined-function-mysql_connect.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect your web forms from email header injection attacks</title>
		<link>http://www.ramkumarkr.com/protect-your-web-forms-from-email-header-injection-attacks.html</link>
		<comments>http://www.ramkumarkr.com/protect-your-web-forms-from-email-header-injection-attacks.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 08:01:53 +0000</pubDate>
		<dc:creator>Ramkumar K R</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramkumar.lifeatsearch.com/protect-your-web-forms-from-email-header-injection-attacks/</guid>
		<description><![CDATA[Hi.. I am back from my native after the weekend.. and here is some useful stuff..
eMail Header Injection &#8211; What it is? 
You have a web form, having some text fields and a submit button, the values are posted to a server sided page , which sends you the details submitted. Take a simple contact us [...]]]></description>
			<content:encoded><![CDATA[<p>Hi.. I am back from my native after the weekend.. and here is some useful stuff..</p>
<p><strong>eMail Header Injection &#8211; What it is? </strong></p>
<p>You have a web form, having some text fields and a submit button, the values are posted to a server sided page , which sends you the details submitted. Take a simple contact us form. If you are a newbie to this, you will not think beyond just capturing the post valaues and sending a mail. But.. do you know that people can send unsolicited emails using the same server sided script, without you getting to know it?</p>
<p><strong>How they do mail header injection? </strong></p>
<p>Its easier to send mailing commands as POST values to your script. Your script will process these instructions and send spam mails to the recipients mentioned in it. You will not have an idea about the abuse of your script, unless you will see a heavy bandwidth usage or your server people blocking your account for sending spam mails.</p>
<p><strong>How to Prevent eMail Header Injection ? </strong></p>
<p>Following are some common steps to prevent mail header injection.</p>
<p>1. Enable for posting from only your domain. You can check the referring domain from which the form is posted. You can disable form posts from unknown domains.</p>
<p>2. Cecking user agents : Most of the spam posting engines will have empty User-Agent Strings. So you can add this condition in your server sided code to block spammers.</p>
<p>3. Check for mail commands in POST values. For example,</p>
<blockquote><p><code><font color="#000000"></font><font color="#0000bb">$badStrings </font><font color="#007700">= array(</font><font color="#dd0000">"Content-Type:"</font><font color="#007700">,<br />
</font><font color="#dd0000">"MIME-Version:"</font><font color="#007700">,<br />
</font><font color="#dd0000">"Content-Transfer-Encoding:"</font><font color="#007700">,<br />
</font><font color="#dd0000">"bcc:"</font><font color="#007700">,<br />
</font><font color="#dd0000">"cc:"</font><font color="#007700">);</font></code></p></blockquote>
<p>the above array contains some of the words you find in a spammers POST values. So you can block the POST, checking the presence of any of these words.</p>
<p>More techniques, if you know any, please feel free to share. Thank you</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ramkumarkr.com/protect-your-web-forms-from-email-header-injection-attacks.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
