<?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>Sun of Day</title>
	<atom:link href="http://arafatbd.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://arafatbd.net</link>
	<description>Arafat Rahman's blog, a php programmer.</description>
	<lastBuildDate>Wed, 21 Apr 2010 13:11:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Kohana PHP Framework and CodeIgniter PHP Framework</title>
		<link>http://arafatbd.net/post-item/161/kohana-php-framework-and-codeigniter-php-framework/</link>
		<comments>http://arafatbd.net/post-item/161/kohana-php-framework-and-codeigniter-php-framework/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 12:31:14 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[Kohana]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[codeignier]]></category>
		<category><![CDATA[framework]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=161</guid>
		<description><![CDATA[CodeIgniter is a powerful PHP framework. I have been working on CodeIgniter for more than 2 years. I suggested lot of my friends to learn CodeIgniter. Few months back I started working on Kohana PHP framework. The slogan of Kohana is nice &#8211; &#8220;The Swift PHP Framework&#8221;. I liked Kohana at the first sight. I [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Powerful PHP Framework" href="http://codeigniter.com" target="_blank"><a href="http://arafatbd.net/wp-content/uploads/2010/04/kohana.jpg" rel="lightbox[161]"><img class="alignleft size-medium wp-image-165" style="margin: 5px;" title="Kohana PHP Framework" src="http://arafatbd.net/wp-content/uploads/2010/04/kohana-300x123.jpg" alt="Kohana PHP Framework" width="300" height="123" /></a>CodeIgniter</a> is a powerful PHP framework. I have been working on CodeIgniter for more than 2 years. I suggested lot of my friends to learn CodeIgniter. Few months back I started working on <a title="The Swift PHP Framework" href="http://www.kohanaphp.com/" target="_blank">Kohana PHP framework</a>. The slogan of Kohana is nice &#8211; &#8220;The Swift PHP Framework&#8221;. I liked Kohana at the first sight.</p>
<p>I developed several web application using Kohana and became a big fan of Kohana. Here I would like to show you some code segments of both frameworks. <a href="http://arafatbd.net/wp-content/uploads/2010/04/codeigniter.jpg" rel="lightbox[161]"><img class="alignright size-full wp-image-166" style="margin: 5px;" title="CodeIgniter" src="http://arafatbd.net/wp-content/uploads/2010/04/codeigniter.jpg" alt="CodeIgniter" width="177" height="62" /></a></p>
<h2>How to load view in CodeIgniter</h2>
<p>To load a view in CodeIgniter you have to write</p>
<pre>$this-&gt;load-&gt;view('home', $data);</pre>
<h2>How to load view in Kohana</h2>
<pre>$this-&gt;template-&gt;content = new View('home');</pre>
<p>I like the Kohana&#8217;s technique best. CodeIngiter is not fully object oriented. Helper functions of CodeIgniter are not object oriented. But in Kohana, everything is object oriented. Say of example- here is a helper class and function to redirect to a particular function in Kohana.</p>
<pre>url::redirect('some_controller/some_function');</pre>
<p>But in CodeIgniter the helper function is something like this-</p>
<p>redirect(&#8216;some_controller/some_function&#8217;);</p>
<p>I would like to share my opinion.</p>
<h3>CodeIgniter:</h3>
<ul>
<li>Easy to learn</li>
<li>Fast and light weight</li>
<li>Good documentation</li>
<li>Not fully object oriented</li>
</ul>
<h3>Kohana:</h3>
<ul>
<li>Easy to learn</li>
<li>Fast and light weight</li>
<li>Documentation is not good</li>
<li>Fully object oriented</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/161/kohana-php-framework-and-codeigniter-php-framework/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Validate HTML forms using jQuery &#8211; Ketchup</title>
		<link>http://arafatbd.net/post-item/148/validate-html-forms-using-jquery-ketchup/</link>
		<comments>http://arafatbd.net/post-item/148/validate-html-forms-using-jquery-ketchup/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 04:51:16 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[HTML Form Validation]]></category>
		<category><![CDATA[jQuery]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=148</guid>
		<description><![CDATA[I was looking for a jQuery plugin to validate HTML forms. Today I was reading articles using Google Reader, and found a fantastic jQuery plugin to validate HTML forms shared by Hasin Hyder. Its simple, very flexible and extendable for its appearance and functionality. More jQuery resources: jQuery Documentation and Tutorial Google AJAX Libraries API [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a <a title="jQuery - JavaScript Library" href="http://jquery.com/" target="_blank">jQuery</a> plugin to validate <a title="HTML Forms" href="http://www.w3schools.com/html/html_forms.asp" target="_blank">HTML forms</a>. Today I was reading articles using <a title="Google Reader" href="https://www.google.com/reader/view/?tab=my" target="_blank">Google Reader</a>, and found a fantastic <a title="HTML Forms validation" href="http://demos.usejquery.com/ketchup-plugin/index.html?role=jquery#what" target="_blank">jQuery plugin to validate HTML forms</a> shared by <a title="Hasin Hyder" href="http://hasin.wordpress.com" target="_blank">Hasin Hyder</a>. Its simple, very flexible and extendable for its appearance         and functionality.</p>
<h2>More jQuery resources:</h2>
<ul>
<li><a title="jQuery - JavaScript Library Documentation" href="http://docs.jquery.com/" target="_blank">jQuery Documentation and Tutorial</a></li>
<li><a href="http://code.google.com/apis/ajaxlibs/" target="_blank">Google AJAX Libraries API</a></li>
<li><a title="jQuery Plugins" href="http://plugins.jquery.com/" target="_blank">More jQuery Plugins</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/148/validate-html-forms-using-jquery-ketchup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Fix NetBeans jdkhome error</title>
		<link>http://arafatbd.net/post-item/142/how-to-fix-netbeans-jdkhome-error/</link>
		<comments>http://arafatbd.net/post-item/142/how-to-fix-netbeans-jdkhome-error/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 15:41:38 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[IDE]]></category>
		<category><![CDATA[netbeans jdkhome error]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=142</guid>
		<description><![CDATA[I use NetBeans as the IDE both in Linux and Windows environment. I like this NetBeans IDE very much. In my Windows PC Java Runtime Environment was updated recently. I am getting following error message when I start NetBeans. &#8220;Cannot find java.exe in specified jdkhome.&#8221; If I click on yes it opens using default version [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a title="NetBeans IDE" href="http://www.netbeans.com/" target="_blank">NetBeans</a> as the <a title="Integrated Development Environment" href="http://en.wikipedia.org/wiki/Integrated_development_environment" target="_blank">IDE</a> both in Linux and Windows environment. I like this <a title="NetBeans IDE" href="http://www.netbeans.com/" target="_blank">NetBeans</a> IDE very much. In my Windows PC <a title="Java Runtime Environment" href="http://java.com/getjava/" target="_blank">Java Runtime Environment</a> was updated recently. I am getting following error message when I start NetBeans.</p>
<p><strong>&#8220;Cannot find java.exe in specified jdkhome.&#8221;</strong></p>
<p style="text-align: center;">
<p><a href="http://arafatbd.net/wp-content/uploads/2009/12/neatbeans-jdkhome-error.jpg" rel="lightbox[142]"><img class="aligncenter size-medium wp-image-143" title="NeatBeans jdkhome error" src="http://arafatbd.net/wp-content/uploads/2009/12/neatbeans-jdkhome-error-300x61.jpg" alt="NeatBeans jdkhome error" width="300" height="61" /></a>If I click on yes it opens using default version of JRE. I fixed this error message today. Its a simple solution. Lets have a look into the solution.</p>
<p>1. Open NetBeans configuration file from NetBeans installation directory. (i.e. C:\Program Files\NetBeans 6.5\etc\netbeans.conf)</p>
<p>2. Set the configuration netbeans_jdkhome to the path of latest Java installed in your PC. (i.e. C:\Program Files\Java\jer1.6.6)</p>
<p>And you are done.</p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/142/how-to-fix-netbeans-jdkhome-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to upgrade Ubuntu in command line</title>
		<link>http://arafatbd.net/post-item/138/how-to-upgrade-ubuntu-in-command-line/</link>
		<comments>http://arafatbd.net/post-item/138/how-to-upgrade-ubuntu-in-command-line/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 16:10:33 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu update]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=138</guid>
		<description><![CDATA[I was trying to upgrade Ubuntu in command line. I would like to share the commands in this post. There are two simple commands to upgrade the version of Ubuntu distribution. sudo apt-get update sudo apt-get dist-upgrade These commands perform smart update of Ubuntu.]]></description>
			<content:encoded><![CDATA[<p>I was trying to upgrade Ubuntu in command line. I would like to share the commands in this post.</p>
<p>There are two simple commands to upgrade the version of Ubuntu distribution.</p>
<blockquote><p><strong>sudo apt-get update<br />
sudo apt-get dist-upgrade</strong></p></blockquote>
<p>These commands perform smart update of Ubuntu.</p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/138/how-to-upgrade-ubuntu-in-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What can we do with .htaccess files</title>
		<link>http://arafatbd.net/post-item/133/what-can-we-do-with-htaccess-files/</link>
		<comments>http://arafatbd.net/post-item/133/what-can-we-do-with-htaccess-files/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 04:47:50 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Webserver]]></category>
		<category><![CDATA[htaccess files]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=133</guid>
		<description><![CDATA[Today I found a website regarding .htaccess tips and tricks. I learned a lot of .htaccess tips from that website. I would like to share the URL here. .htaccess tips and tricks part 1 .htaccess tips and tricks part 2 This article was very helpful to me.]]></description>
			<content:encoded><![CDATA[<p>Today I found a website regarding .htaccess tips and tricks. I learned a lot of .htaccess tips from that website. I would like to share the URL here.</p>
<p><a href="http://corz.org/serv/tricks/htaccess.php" target="_blank">.htaccess tips and tricks part 1</a></p>
<p><a href="http://corz.org/serv/tricks/htaccess2.php" target="_blank">.htaccess tips and tricks part 2</a></p>
<p>This article was very helpful to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/133/what-can-we-do-with-htaccess-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ডিসকানেক্ট সমস্যা, আমার অভিযোগ ও গ্রামীণফোনের কাস্টমার সার্ভিস</title>
		<link>http://arafatbd.net/post-item/129/disconnect-problem-of-gp-internet/</link>
		<comments>http://arafatbd.net/post-item/129/disconnect-problem-of-gp-internet/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 04:38:54 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[My Feelings]]></category>
		<category><![CDATA[Grameen Phone Internet]]></category>
		<category><![CDATA[internet connection]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=129</guid>
		<description><![CDATA[লেখার টাইটেলটা কিছুটা শিবরাম চক্রবর্তির গল্পের টাইটেলের মত মনে হতে পারে। গল্পই বটে, জীবন্ত গল্প। ঘটনাটি শুরু থেকেই বলি। তা নাহলে আবার বলবেন শুরুটাতো শুনলাম না। ২০০৮ সালের নভেম্বর মাস থেকে ইন্টারনেট লাইনের গতি এতই ধীর হয়ে গেল যে প্রতিদিনই মেজাজ গরম থাকতো। বউয়ের সাথেও মেজাজ খারাপ করতাম। কিছু দিন পরে পোস্ট পেইড সীম কিনলাম [...]]]></description>
			<content:encoded><![CDATA[<p>লেখার টাইটেলটা কিছুটা শিবরাম চক্রবর্তির গল্পের টাইটেলের মত মনে হতে পারে। গল্পই বটে, জীবন্ত গল্প। ঘটনাটি শুরু থেকেই বলি। তা নাহলে আবার বলবেন শুরুটাতো শুনলাম না।</p>
<p>২০০৮ সালের নভেম্বর মাস থেকে ইন্টারনেট লাইনের গতি এতই ধীর হয়ে গেল যে প্রতিদিনই মেজাজ গরম থাকতো। বউয়ের সাথেও মেজাজ খারাপ করতাম। কিছু দিন পরে পোস্ট পেইড সীম কিনলাম একটা। এবার কাস্টমার কেয়ারে ফোন করলাম। প্রিপেইড দিয়ে কাস্টমার কেয়ারে কথা বলে মজা নেই। খালি বুকের মধ্যে ধুক ধুক করে কখন ব্যালেন্স শেষ হয়ে যায়। পোস্ট পেইড দিয়ে অভিযোগ করতে থাকলাম দু দিন পর পর।</p>
<p>প্রতিদিন নতুন একজন কাস্টমার ম্যানেজারের সাথে কথা হয়। বলে- আপনার অভিযোগটি রাখছি, আশা করি শিঘ্রই ঠিক হয়ে যাবে। এক মাস পরে ইন্টারনেট লাইনের গতি আবার আগের মত হলো। ভালই স্পীড। ২০ কিলো বাইট থেকে ২৫ কিলো বাইট। কাস্টমার কেয়ার থেকে একজন ফোন করে জিজ্ঞেস করলো- স্যার আপনার ইন্টারনেট সমস্যা সমাধান হয়েছে? আমি বললাম, জী হয়েছে। লোকটার কাছে আরো জানতে পারলাম আমার এলাকার বিটিএস টাওয়ারে নাকি একটা নতুন ডিভাইস বসানো হয়েছে। তারই ফল সরূপ আমি ভালো স্পীড পাচ্ছি। আলহামদুলিল্লাহ।</p>
<p>ওমা, দুদিন পর থেকে দেখি আরেক সমস্যা। হঠাৎ হঠাৎ ইন্টারনেট ডিসকানেক্ট হয়ে যাচ্ছে। প্রথমে ভাবলাম আমার সেটের সমস্যা। আমার বন্ধুদের কয়েকটা সেট দিয়ে চেষ্টা করলাম। নাহ, সেটে সমস্যা না। কম্পিউটার এবং অপারেটিং সিসটেম পরিবর্তন করে দেখলাম। নাহ, সেটাও ঠিক আছে।</p>
<p>এবার স্থান পরিবর্তন করে দেখলাম। আমি থাকি গাজীপুরে। ঢাকায় ডিসকানেক্ট সমস্যা নেই। মোহাম্মাদপুরে, গুলশানে, যাত্রাবাড়ীতে কোনো সমস্যা নেই। নাখাল পাড়ায় ডিসকানেক্ট সমস্যা আছে। নাখাল পাড়ায় একদিন ৭/৮ ঘন্টার মত ছিলাম।<span id="more-129"></span></p>
<p>এবার শিওর হলাম সমস্যাটা আমার কম্পিউটার কিংবা সেটের নয়। নেটওয়ার্কের সমস্যা। কাস্টমার কেয়ারে ফোন করলাম। এপ্রিল মাসের ১৩ তারিখে। ওরা আমাকে মোবাইল সেট পরিবর্তন করতে বলল, সফ্টওয়্যার নতুন করে সেটাপ দিতে বলল, ক্যাবল পরিবর্তন করতে বলল, ইত্যাদি ইত্যাদি। আমি একটা একটা করে আবারো করলাম। দুদিন পর পর আবারো আগের অভিযোগের কথা বলি। প্রতিদিন নতুন নতুন কাস্টমার ম্যানেজারের সাথে কথা হয়। প্রত্যেকেই একই কথা বলতে চায়। আমি বলি ভাই, এগুলো করেছি, নতুন কিছু আছে কিন সেটা বলেন। নাহ, কিছুতেই কিছু হয় না। বন্ধুদের সাথেও আলাপ করতে বাকি রাখি না। <a title="Hungry Coder" href="http://hungrycoder.xenexbd.com/" target="_blank">কোডার</a> ভাইও বলে আমার সেটে সমস্যা।</p>
<p>অবশেষে কাস্টমার কেয়ার থেকে অভিযোগটি নেটওয়ার্ক টীমের কাছে হস্তান্তর হয়। নেটওয়ার্ক টীমের একজন আমাকে ফোন করে সেটের সফটওয়ার নতুন করে ইন্সটল করতে বলে, ওএস ইন্সটল করতে বলে। আমি বলি- ভাই, এতদিন পর এই কথা শোনানোর জন্য আপনি ফোন করেছেন? বেচারা একটু নাখোশ হয় আমার উপর। দু দিন পর পর আমার ফোন চলতেই থাকে। ওরা থেমে গেলেও আমি থামি না।</p>
<p>একদিন আমার বাসায় এক লোক আসে গ্রামীণফোন থেকে। এসে বলে- আপনি ইন্টারনেট লাইন স্লো পাচ্ছেন, এরকম একটি অভিযোগ আছে । আমি সেটা পরীক্ষা করতে এসেছি।<br />
আমি মনে মনে বলি- মাটি তুই ফাঁক হ, আমি ভিতরে ঢুইকা যাই। কাস্টমার ম্যানেজারদের সাথে যতবার কথা হয়েছে, আমি বার বার বলে দিয়েছি আমার ইন্টারনেট লাইন স্লো না। সমস্যা হচ্ছে বার বার ডিসকানেক্ট হয়ে যায়।<br />
লোকটা বলল- আমি যে অভিযোগ নিয়ে এসেছি সেটা ছাড়া অন্য অভিযোগের পরীক্ষা করার জন্য আমি প্রস্তুত না।</p>
<p>কি আর করা। কিছুক্ষণ থেকে লোকটা চলে গেল। বলে গেল- আপনার অভিযোগ আমি কর্তৃপক্ষকে জানাবো।<br />
আবার আমার ফোন করার পালা শুরু। কাস্টমার কেয়ারে দু দিন পর পরই ফোন করি। আমার ধৈর্য আছে বলা যায়। দিন যায়, সপ্তাহ যায়, মাস যায় আমার ইন্টারনেট লাইনের তাতে কিছু যায় আসে না। আমিও নাছোড় বান্দা। দু দিন পর পর ফোন করি আর কাস্টমার ম্যানেজারদের কাছ থেকে আশ্বাসের বানী শুনি। অনেকেই মনে মনে ভাবছেন মেয়ে কাস্টমার ম্যানেজারদের সাথে কথা বলতে ভালই লাগে। নাহ, ইন্টারনেট টীমে কোনো মেয়ে কাস্টমার ম্যানেজার নেই মনে হয়। আমি পাইনি। একদিন এক কাস্টমার ম্যানেজার বললেন- আপনার অভিযোগের সমাধান ৪৮ ঘন্টার মধ্যে পেয়ে যাবেন, অথবা আমাদের পক্ষ থেকে জানানো হবে কতদিন লাগবে এই সমস্যা সমাধান করতে। নাহ, বেশ কয়েকটা ৪৮ ঘন্টা চলে গেল। কিন্তু ফোনও আসলো না, আমার সমস্যা সমাধানও হলো না। আমি বট বৃক্ষের মত ধৈর্যশীল, আবার ফোন করি।</p>
<p>একদিন সকাল থেকে দুপুর ১২ টা পর্যন্ত দেখি একবারও ডিসকানেক্ট হলো না। আগস্ট মাসের ৪/৫ তারিখ হবে আমার ঠিক মনে নেই। আমি মনে মনে প্রভুকে ধন্যবাদ দেই। আবার ভাবি এত তাড়াতাড়ি সমাধান হয়ে গেল? হ্যাঁ তাইতো দেখি, ডিসকানেক্ট হয় না। তার পর থেকে আজ পর্যন্ত ৩ বার ডিসকানেক্ট হয়েছে।</p>
<p>আমি আল্লহকেই ধন্যবাদ দেই। গ্রামীণফোনকে নয়। ৪ মাস পর ডিসকানেক্ট সমস্যার সমাধান পেয়ে গ্রামীণফোনকে ধন্যবাদ দিতে ইচ্ছে করছে না।</p>
<p><a href="http://forum.projanmo.com/viewtopic.php?id=12752" target="_blank">প্রজন্ম ফোরামে প্রকাশিত</a></p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/129/disconnect-problem-of-gp-internet/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>PHP Security Tips and Tools</title>
		<link>http://arafatbd.net/post-item/106/php-security-tips-and-tools/</link>
		<comments>http://arafatbd.net/post-item/106/php-security-tips-and-tools/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 07:03:00 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[conjunction]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[open source tools]]></category>
		<category><![CDATA[paragraphs]]></category>
		<category><![CDATA[php applications]]></category>
		<category><![CDATA[php security]]></category>
		<category><![CDATA[programmers]]></category>
		<category><![CDATA[register globals]]></category>
		<category><![CDATA[scripting languages]]></category>
		<category><![CDATA[security breaches]]></category>
		<category><![CDATA[security experts]]></category>
		<category><![CDATA[security risk]]></category>
		<category><![CDATA[security tips]]></category>
		<category><![CDATA[security vulnerabilities]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[versatility]]></category>
		<category><![CDATA[web programming languages]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=106</guid>
		<description><![CDATA[I was reading on the topic &#8220;php security&#8221; using Google Reader. I hope it helps everyone to defining PHP security and it&#8217;s uses. Here I would like to quote some paragraphs from the original post on noupe.com PHP is the most popular web programming languages in use today due in large part to the fact [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 376px"><img title="Powerful Security" src="http://pro.corbis.com/images/AX932529.jpg?size=67&amp;uid=35a73b11-07fe-4d6f-847c-b312367bc929&amp;uniqID=81018695-7610-4bd3-952b-a8748815c981" alt="Powerful Security" width="366" height="288" /><p class="wp-caption-text">Powerful Security</p></div>
<p>I was reading on the topic &#8220;<a title="PHP Security: Fortifying Your Website- Power Tips, Tools &amp; How to's" href="http://www.noupe.com/php/php-security-tips.html" target="_blank">php security&#8221;</a> using <a title="I like it very much" href="http://www.google.com/reader/" target="_blank">Google Reader</a>. I hope it helps everyone to defining PHP security and it&#8217;s uses. Here I would like to quote some paragraphs from the <a title="PHP Security: Fortifying Your Website- Power Tips, Tools &amp; How to's" href="http://www.noupe.com/php/php-security-tips.html" target="_blank">original post on noupe.com</a></p>
<blockquote><p>PHP is the most popular web programming languages in use today due in large part to the fact that it’s a highly flexible syntax that can perform many functions while working flawlessly in conjunction with html – Plus it’s relatively easy to learn for beginners, yet it’s powerful enough for advanced users as well. It also works exceptionally well with open source tools, such as the Apache web server and MySQL database. In other words, its versatility is unsurpassed when compared to other scripting languages, making it the language of choice for many programmers.</p></blockquote>
<p>There are various types of attacks that PHP is particularly vulnerable to. The two main types of attacks are human attacks and automated attacks – Both of which can potentially devastate a website. The goal of PHP security is to minimize, and ultimately eliminate, the potential for both human and automated attacks by putting into place strategic lines of defense to eliminate access to your site by unverified users. The way you go about doing this is to target the most common types of PHP security breaches first, so that you make your website airtight against malicious attacks. So what are the most common types of PHP security breaches?</p>
<h2>Most Common PHP Security Vulnerabilities</h2>
<h3>1. Register_Globals</h3>
<p>Register_Globals makes writing PHP applications simple and convenient for the developer, but it also poses a potential security risk. This setting is located in PHP&#8217;s configuration file, which is php.ini, and it can be either turned on or off. When turned on, it allows unverified users to inject variables into an application to gain administrative access to your website. Most, if not all, PHP security experts recommend turning register_globals off.<span id="more-106"></span></p>
<p>So instead of relying on register_globals, you should instead go through PHP Predefined Variables, such as $_REQUEST. To further tighten security, you should also specify by using: $_ENV, $_GET, $_POST, $_COOKIE, or $_SERVER instead using the more general $_REQUEST.</p>
<h3>2. Error Reporting</h3>
<p>Error reporting is a great tool for diagnosing bugs and allowing you to fix them quicker and easier, but it also poses a potential security threat. The problem occurs when the error is visible to others on-screen, because it reveals possible security holes in your source code that a hacker can easily take advantage of. If display_errors is not turned off, or have a value of &#8220;0&#8243;, the output will appear on the end user&#8217;s browser – Not good for security! You do, however, want to set log_errors to on, and then indicate the exact location of the log with error_log.</p>
<h3>3. Cross-Site Scripting (XSS)</h3>
<p>Cross-site scripting, or XSS, is a way for hackers to gather your website&#8217;s user data by using malicious markup or JavaScript code to trick a user, or their browser, to follow a bad link or present their login details to a fake login screen that instead of logging them in, steals their personal information. The best way to defend against XSS is to disable JavaScript and images while surfing the web, but we all know that&#8217;s nearly impossible with so many websites using JavaScript&#8217;s rich application environment these days.</p>
<p>Useful for protecting against XSS is a useful PHP function called htmlentities(). This simple function works by converting all characters in html to their corresponding entities, such as &#8220;&lt;&#8221; would convert to &#8220;&lt;&#8221; (without the quotes).</p>
<h3>4. Remote File Inclusion (RFI)</h3>
<p>This type of attack is relatively unknown amongst developers, which makes it an especially damaging threat to PHP security. Remote file inclusion, or RFI, involves an attack from a remote location that exploits a vulnerable PHP application and injects malicious code for the purpose of spamming or even gaining access to the root folder of the server. An unverified user gaining access to any server can wreak major havoc on a website in many different ways, including abusing personal information stored in databases.</p>
<p>The best way to secure your site from RFI attacks is through php.ini directives – Specifically, the allow_url_fopen and the allow_url_include directives. The allow_url_fopen directive is set to on by default, and the allow_url_include is set to off. These two simple directives will adequately protect your site from RFI attacks.</p>
<h2>Other PHP Security Tools</h2>
<p><a title="PhpSecInfo" href="http://phpsec.org/projects/phpsecinfo/index.html" target="_blank"><strong>- PhpSecInfo</strong></a><br />
This useful tool reports security information in the PHP environment, and best of all, it offers suggestions for improving the errors. It&#8217;s available for download under the &#8220;New BSD&#8221; license, and the PhpSecInfo project is always looking for more PHP developers to help improve this tool.</p>
<p><a title="PHP Security Scanner" href="http://sourceforge.net/projects/securityscanner/" target="_blank"><strong>- PHP Security Scanner</strong></a></p>
<p>This is a tool used to scan PHP code for vulnerabilities, and it can be used to scan any directory. PHP Security Scanner features a useful UI for better visualization of potential problems, and it supports basic wild card search functionality for filtering directories or files that are to be searched.</p>
<p><a title="Spike PHP Security Audit Tool" href="http://developer.spikesource.com/projects/phpsecaudit/" target="_blank"><strong>- Spike PHP Security Audit Tool</strong></a></p>
<p>The Spike PHP Security Audit Tool is an open source solution for doing static analysis of PHP code. It will search for security exploits, so you can correct them during the development process.</p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/106/php-security-tips-and-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla error &#8211; Layout &#8220;unijoy&#8221; not found</title>
		<link>http://arafatbd.net/post-item/101/joomla-error-layout-unijoy-not-found/</link>
		<comments>http://arafatbd.net/post-item/101/joomla-error-layout-unijoy-not-found/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 06:16:01 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[unijoy error]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=101</guid>
		<description><![CDATA[I was getting a error message while trying to visit Joomla site in my local PC. I can visit the live joomla sites, but can not visit the Joomla site those are hosted in my local PC. Following error message was generating: Layout &#34;unijoy&#34; not found I was trying to visit using Mozilla Firefox. If [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting a error message while trying to visit <a title="Joomla! the best CMS." href="http://www.joomla.org" target="_blank">Joomla</a> site in my local PC. I can visit the live joomla sites, but can not visit the Joomla site those are hosted in my local PC.</p>
<p>Following error message was generating:</p>
<pre class="brush: plain;">Layout &quot;unijoy&quot; not found</pre>
<p>I was trying to visit using Mozilla Firefox. If I use any other browser it shows everything fine. What was the problem?</p>
<p>I was facing this problem since several months. I could not mange time to identify the problem. Today I made a promise &#8220;I&#8217;ll fix this problem today&#8221;, and identified the problem and fixed.</p>
<p>Simply, there was a <a title="HTTP Cookie" href="http://en.wikipedia.org/wiki/HTTP_cookie" target="_blank">cookie</a> in Firefox named <strong>layout</strong> and the value was &#8220;<strong>unijoy</strong>&#8221; for the localhost domain. When I try to visit Joomla site from my local PC, it picks the cookie &#8220;<strong>layout</strong>&#8221; and try to render the view &#8220;<strong>unijoy</strong>&#8220;.</p>
<p>I have remove the cookie and now it works fine. <img src='http://arafatbd.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/101/joomla-error-layout-unijoy-not-found/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>7 things you may not know about me</title>
		<link>http://arafatbd.net/post-item/94/7-things-you-may-not-know-about-me/</link>
		<comments>http://arafatbd.net/post-item/94/7-things-you-may-not-know-about-me/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 04:37:06 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[My Feelings]]></category>
		<category><![CDATA[7 things]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=94</guid>
		<description><![CDATA[The game I saw in Hasin Hayder&#8216;s blog. I have been tagged by Rayhan Chowdhury yesterday. Thanks for the tagging. &#8220;originally started by tony bibbs it is a funny thing indeed. okay, everyone knows what the seven things is. i was tagged by emran and here goes my seven things&#8221; &#8211; from Hasin Hayder&#8216;s blog. [...]]]></description>
			<content:encoded><![CDATA[<p>The game I saw in <a title="Hasin Hayder" href="http://hasin.wordpress.com/2009/02/21/seven-things-you-may-not-know-about-me/" target="_blank">Hasin Hayder</a>&#8216;s blog. I have been tagged by <a title="Rayhan Chowdhury" href="http://raynux.com/blog/?p=50" target="_blank">Rayhan Chowdhury</a> yesterday. Thanks for the tagging.</p>
<p style="padding-left: 30px;"><em>&#8220;originally started by <a href="http://www.tonybibbs.com/">tony bibbs</a> it is a funny thing indeed. okay, everyone knows what the seven things is. i was tagged by <a href="http://phpfour.com/blog">emran</a> and here goes my seven things&#8221;</em> &#8211; from <a title="Hasin Hayder" href="http://hasin.wordpress.com/2009/02/21/seven-things-you-may-not-know-about-me/" target="_blank">Hasin Hayder</a>&#8216;s blog.</p>
<p>I like this game, and now let me share 7 things you may NOT know about me.</p>
<ol>
<li>I was a student of Humanities in SSC, HSC; and later I passed B.Ed. (Hons) and M.Ed. from Teachers Training College, Dhaka.</li>
<li>In the last 4 years of my education, I was a hardware and trouble shooting engineer, based on home service.</li>
<li>I have lots of students, youngest student read in class 8 (in 2003) and the oldest student is a doctor. I assume his age around 95 years.</li>
<li>I wrote a book on computer learning named &#8220;এসো কম্পিউটার শিখি &#8211; Computer learning guide&#8221;, published by <a title="D.Net" href="http://www.dnet.org.bd" target="_blank">D.Net</a>.</li>
<li>Last month I got a <a title="My Daughter" href="http://www.facebook.com/album.php?aid=57907&amp;id=606257144" target="_blank">baby girl</a> who can not write PHP code. LOL&#8230;. I am sure <a title="My Wife" href="http://www.facebook.com/profile.php?id=1423283720" target="_blank">her mother</a> knows PHP and C++.<span id="more-94"></span></li>
<li>In 1998, I had a good relation with a doctor in Madaripur, later I found in news paper he is a JMB member (afraid!).</li>
<li>I am suffering from Hepatitis B and taking rest in my home according to the suggestion of my doctor.</li>
</ol>
<p>I would like to read 7 things about these following 7 people.</p>
<ol>
<li><a title="Raju vai" href="http://hungrycoder.xenexbd.com/" target="_blank">Hungry Coder</a></li>
<li><a title="Sajjad Hossain" href="http://sajjadhossain.com" target="_blank">Sajjad Hossain</a></li>
<li><a title="Akil Hossain" href="http://akilhossain.com" target="_blank">Akil Hossain</a></li>
<li><a title="TRIVUz" href="http://trivuz.com" target="_blank">TRIVUz</a></li>
<li><a title="Sharif Abdullah" href="http://sharifabdullah.com" target="_blank">Sharif Abdullah</a></li>
<li><a title="Rahat Bashir" href="http://www.facebook.com/profile.php?id=1428327932" target="_blank">Rahat Bashir</a></li>
<li><a title="Zulfur Rahman Raju" href="http://www.facebook.com/profile.php?id=563631272" target="_blank">Zulfur Rahman Raju</a></li>
</ol>
<p>And here are the rules:<br />
- Link your original tagger(s), and list these rules on your blog.<br />
- Share seven facts about yourself in the post &#8211; some random, some weird.<br />
- Tag seven people at the end of your post by leaving their names and the links to their blogs.<br />
- Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/94/7-things-you-may-not-know-about-me/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Dot bd (.bd) domain look up or whois look up</title>
		<link>http://arafatbd.net/post-item/73/dot-bd-bd-domain-look-up-or-whois-look-up/</link>
		<comments>http://arafatbd.net/post-item/73/dot-bd-bd-domain-look-up-or-whois-look-up/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 18:52:32 +0000</pubDate>
		<dc:creator>Arafat Rahman</dc:creator>
				<category><![CDATA[Domain]]></category>
		<category><![CDATA[.bd domain]]></category>
		<guid isPermaLink="false">http://arafatbd.net/?p=73</guid>
		<description><![CDATA[Dot bd (.bd), internet address of Bangladesh. Would you like to register .bd domain? You need to visit BTCL&#8216;s office in Mogbazar, Dhaka. You may visit BTCL&#8217;s official website to know how to register .bd domain. Here  I would like to share a simple service to search .bd domain for registration or whois record. http://arafatbd.net/dotbd/ [...]]]></description>
			<content:encoded><![CDATA[<p>Dot bd (.bd), internet address of Bangladesh. Would you like to register .bd domain? You need to visit <a title="BTCL" href="http://www.btcl.net.bd" target="_blank">BTCL</a>&#8216;s office in <a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=Moghbazar,+Dhaka&amp;ie=UTF8&amp;cd=1&amp;ll=23.749525,90.411472&amp;spn=0.009447,0.019183&amp;z=16" target="_blank">Mogbazar, Dhaka</a>. You may visit BTCL&#8217;s official website to know how to register .bd domain.</p>
<p>Here  I would like to share a simple service to search .bd domain for registration or whois record.</p>
<h3><a href="http://arafatbd.net/dotbd/" target="_blank">http://arafatbd.net/dotbd/</a></h3>
<p>Visit this link to search .bd domain or whois record.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://arafatbd.net/post-item/73/dot-bd-bd-domain-look-up-or-whois-look-up/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
