<?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>Md Emran Hasan (phpfour)</title>
	<atom:link href="http://www.phpfour.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpfour.com/blog</link>
	<description>Emran's sharing on web technologies</description>
	<lastBuildDate>Tue, 16 Feb 2010 20:28:52 +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>Enterprise PHP</title>
		<link>http://www.phpfour.com/blog/2010/02/enterprise-php/</link>
		<comments>http://www.phpfour.com/blog/2010/02/enterprise-php/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 20:11:13 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[softexpo]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=273</guid>
		<description><![CDATA[I presented this talk on the Soft Expo 2010 &#8211; the largest software fair in Bangladesh. The intention was to clear some of the misconception about PHP, the growth of PHP, how it can fit in the enterprise now, etc. 
After these, I shed light on some topics that a company/developer should keep in mind [...]]]></description>
			<content:encoded><![CDATA[<p>I presented this talk on the Soft Expo 2010 &#8211; the largest software fair in Bangladesh. The intention was to clear some of the misconception about PHP, the growth of PHP, how it can fit in the enterprise now, etc. </p>
<p>After these, I shed light on some topics that a company/developer should keep in mind in order to write good software in PHP. This was followed by live session on caching, mysql query optimization, use of Xdebug, etc.</p>
<p>So here goes the presentation:</p>
<div style="margin: 0pt auto; width:425px; text-align: center;" id="__ss_3176537"><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=enterprisephp-100214110838-phpapp01&#038;stripped_title=enterprise-php-3176537" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=enterprisephp-100214110838-phpapp01&#038;stripped_title=enterprise-php-3176537" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></div>
<p>And a big thanks to Ivo Jansch&#8217;s &#8220;<a href="http://www.slideshare.net/ijansch/php-in-the-real-world">PHP in the real wolrd</a>&#8221; presentation, from where I took inspiration.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2010/02/enterprise-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the default controller naming convention in CodeIgniter</title>
		<link>http://www.phpfour.com/blog/2009/09/codeigniter-controller-naming-convention-modified/</link>
		<comments>http://www.phpfour.com/blog/2009/09/codeigniter-controller-naming-convention-modified/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 06:23:04 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[library]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=265</guid>
		<description><![CDATA[CodeIgniter is one of my favorite framework and I often use it for developing application quickly. Although it is very flexible in most cases, I find its naming convention to be strict. Many times I have faced this problem when my controller&#8217;s class name and a model/library&#8217;s class names are the same &#8211; a Fatal [...]]]></description>
			<content:encoded><![CDATA[<p>CodeIgniter is one of my favorite framework and I often use it for developing application quickly. Although it is very flexible in most cases, I find its naming convention to be strict. Many times I have faced this problem when my controller&#8217;s class name and a model/library&#8217;s class names are the same &#8211; a Fatal error is inevitable and I have to forcefully change the name of the conflicting class to something less desirable (say from Users to UsersModel). Today I wanted to end this problem.</p>
<p>So I extended the <strong>CI_Router</strong> core class and made change to the <em>_validate_request</em> method. Now I can name my controller classes in this fashion: <strong>UsersController</strong> and it resides on the file system as <strong>controllers/UsersController.php</strong>. If you&#8217;ve tried other established frameworks, you should notice that this naming convention is widely used. So, if you have the same need, then just download the MY_Router.php file and put it on your application/libraries folder. That&#8217;s it.</p>
<p>Here is how your controller would start:</p>
<pre class="brush: php">
&lt;?php

class UsersController extends Controller
{
    public function __construct()
    {
        parent::__construct();
    }
}
</pre>
<p><span id="more-265"></span><br />
If you&#8217;d like to have a look at the code, here is the source for quick view:</p>
<pre class="brush: php">
&lt;?php if ( ! defined(&#039;BASEPATH&#039;)) exit(&#039;No direct script access allowed&#039;);

/*
 * MY_Router
 *
 * Extended the core CI_Router class in order to force a different naming
 * convention for controllers.
 *
 */
class MY_Router extends CI_Router
{
    /*
     * Suffix in controller name
     *
     * @var String
     */
    private $_suffix = &quot;Controller&quot;;

    /*
     * Call the parent constructor
     *
     * This is a requirement for extending base CI core class. Just abiding by
     * the rules.
     *
     * @access  public
     * @return  void
     */
    public function MY_Router()
    {
        parent::CI_Router();
    }

    /**
     * Validates the supplied segments.  Attempts to determine the path to
     * the controller.
     *
     * @access   private
     * @param    array
     * @return   array
     */
    function _validate_request($segments)
    {
        // Retain the original segments
        $orgSegments = array_slice($segments, 0);

        // Add suffix to the end
        $segments[0] = ucfirst($segments[0]) . $this-&gt;_suffix;

        // Does the requested controller exist in the root folder?
        if (file_exists(APPPATH.&#039;controllers/&#039;.$segments[0].EXT))
        {
            return $segments;
        }

        // OK, revert to the original segment
        $segments[0] = $orgSegments[0];

        // Is the controller in a sub-folder?
        if (is_dir(APPPATH.&#039;controllers/&#039;.$segments[0]))
        {
            // Set the directory and remove it from the segment array
            $this-&gt;set_directory($segments[0]);
            $segments = array_slice($segments, 1);

            if (count($segments) &gt; 0)
            {
                // Add suffix to the end
                $segments[0] = ucfirst($segments[0]) . $this-&gt;_suffix;

                // Does the requested controller exist in the sub-folder?
                if ( ! file_exists(APPPATH.&#039;controllers/&#039;.$this-&gt;fetch_directory().$segments[0].EXT))
                {
                    show_404($this-&gt;fetch_directory().$segments[0]);
                }
            }
            else
            {
                // Add suffix to the end
                $this-&gt;default_controller = ucfirst($this-&gt;default_controller) . $this-&gt;_suffix;

                $this-&gt;set_class($this-&gt;default_controller);
                $this-&gt;set_method(&#039;index&#039;);

                // Does the default controller exist in the sub-folder?
                if ( ! file_exists(APPPATH.&#039;controllers/&#039;.$this-&gt;fetch_directory().$this-&gt;default_controller.EXT))
                {
                    $this-&gt;directory = &#039;&#039;;
                    return array();
                }

            }

            return $segments;
        }

        // Can&#039;t find the requested controller...
        show_404($segments[0]);
    }
}
</pre>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/09/codeigniter-controller-naming-convention-modified/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Facebook Developer Garage Dhaka &#8211; Open Stream API</title>
		<link>http://www.phpfour.com/blog/2009/08/facebook-developer-garage-dhaka-open-stream-api-connect-quickstart-publish/</link>
		<comments>http://www.phpfour.com/blog/2009/08/facebook-developer-garage-dhaka-open-stream-api-connect-quickstart-publish/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 11:26:05 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RBS]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[facebook garage]]></category>
		<category><![CDATA[open stream]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=255</guid>
		<description><![CDATA[The first ever &#8220;Facebook Developer Garage&#8221; took place in Dhaka, Bangladesh and I am proud to be a part of it. I was one of the speakers of this spectacular event organized by Facebook and IBT bangladesh. I spoke about the recently released Open Stream API from Facebook. It was more of an overview rather [...]]]></description>
			<content:encoded><![CDATA[<p>The first ever &#8220;Facebook Developer Garage&#8221; took place in Dhaka, Bangladesh and I am proud to be a part of it. I was one of the speakers of this spectacular event organized by Facebook and IBT bangladesh. I spoke about the recently released Open Stream API from Facebook. It was more of an overview rather than a detail one. Here goes the slides:</p>
<div style="margin: 0pt auto; width:425px; text-align: center;" id="__ss_1898723"><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=facebookgarage-090824045242-phpapp01&#038;stripped_title=facebook-open-stream-api-facebook-developer-garage-dhaka" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=facebookgarage-090824045242-phpapp01&#038;stripped_title=facebook-open-stream-api-facebook-developer-garage-dhaka" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></div>
<p>I have created a quick start example which outlines both Facebook Connect and the Open Stream API. You can check that <a href="http://www.phpfour.com/fbstream/">here</a>. A blog post covering the steps is coming soon in 3-4 days.</p>
<p>Stay tuned if you have interest in them.</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/08/facebook-developer-garage-dhaka-open-stream-api-connect-quickstart-publish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpXperts &#8216;09 seminar</title>
		<link>http://www.phpfour.com/blog/2009/05/phpxperts-09-seminar-becoming-a-php-ninja/</link>
		<comments>http://www.phpfour.com/blog/2009/05/phpxperts-09-seminar-becoming-a-php-ninja/#comments</comments>
		<pubDate>Sun, 17 May 2009 20:29:25 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RBS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[phpxperts]]></category>
		<category><![CDATA[seminar]]></category>
		<category><![CDATA[speech]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=243</guid>
		<description><![CDATA[At last the phpXperts seminar on &#8220;Current Web Trends&#8221; have taken place and I was one of the speakers there. Among all the topics, mine was a bit suggestive and naturally a bit less exciting. I spoke about how to become a PHP ninja &#8211; what are the characteristics they posses, what are the tools [...]]]></description>
			<content:encoded><![CDATA[<p>At last the phpXperts seminar on &#8220;Current Web Trends&#8221; have taken place and I was one of the speakers there. Among all the topics, mine was a bit suggestive and naturally a bit less exciting. I spoke about how to become a PHP ninja &#8211; what are the characteristics they posses, what are the tools they use, what are the paths they follow etc. It&#8217;s actually a follow-up of one of my blog posts: &#8220;<a href="http://www.phpfour.com/blog/2008/10/become-kick-ass-php-ninja-from-newbie-guide-tips/">Becoming a kick-ass PHP ninja</a>&#8220;.</p>
<p>Here goes the slides:</p>
<div id="__ss_1448402" style="margin: 0pt auto; width: 425px; text-align: center;"><object width="425" height="355" data="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=becomingaphpninja-090517141544-phpapp01&amp;stripped_title=becoming-a-php-ninja" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=becomingaphpninja-090517141544-phpapp01&amp;stripped_title=becoming-a-php-ninja" /><param name="allowfullscreen" value="true" /></object></div>
<p>All the other slides, pictures, and videos are available <a href="http://slides.phpxperts.net/">here</a>.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/05/phpxperts-09-seminar-becoming-a-php-ninja/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Twitter for sending server downtime alert</title>
		<link>http://www.phpfour.com/blog/2009/03/php-twitter-server-monitoring-curl-tips-rest-api/</link>
		<comments>http://www.phpfour.com/blog/2009/03/php-twitter-server-monitoring-curl-tips-rest-api/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 16:53:22 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[quick]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=238</guid>
		<description><![CDATA[Today I&#8217;ve written this simple PHP script to alert me through Twitter whenever our company&#8217;s local server is down. The script is called by a cron every 5 mins in my central hosting. Without much babble, here goes the code (if you&#8217;re interested to know why I needed this, that&#8217;s at the bottom of the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve written this simple PHP script to alert me through <a href="http://twitter.com">Twitter</a> whenever our company&#8217;s local server is down. The script is called by a cron every 5 mins in my central hosting. Without much babble, here goes the code (if you&#8217;re interested to know why I needed this, that&#8217;s at the bottom of the post):</p>
<pre class="brush: php">
&lt;?php

// Specify the target URL in your server
$targetUrl  = &#039;http://YOUR_SERVER_URL&#039;;

// Specify what the response is from the server
$targetText = &#039;Hello from Daredevil&#039;;

// We will be using cURL for fetching the content
$ch = curl_init();

// Set the params
curl_setopt($ch, CURLOPT_URL, $targetUrl);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// Get the response
$response = curl_exec($ch);
curl_close($ch);

// Are things in right place ?
if ($response == $targetText) {
    die(&#039;Site is up and running!&#039;);
}

// Nope, so here are the sender&#039;s twitter info
$username = &#039;SENDER_TWITTER_USERNAME&#039;;
$password = &#039;SENDER_TWITTER_PASSWORD&#039;;

// Receiver&#039;s twitter username
$receiver = &#039;RECEIVER_TWITTER_USERNAME&#039;;

// Alert message to send
$message = &#039;Daredevil is not responding, please fix ASAP!&#039;;

// The Twitter API address (new direct message)
$url = &#039;http://twitter.com/direct_messages/new.json&#039;;

// We will be using cURL for this
$ch = curl_init();

// Set the params
curl_setopt($ch, CURLOPT_URL, &quot;$url&quot;);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, &quot;user=$receiver&amp;amp;text=$message&quot;);
curl_setopt($ch, CURLOPT_USERPWD, &quot;$username:$password&quot;);

// Send the request
$response = curl_exec($ch);
curl_close($ch);

// Success or failure
if (!empty($response)) {
    echo &#039;Recipient has been notified.&#039;;
} else {
    echo &#039;No response from twitter.&#039;;
}
</pre>
<p><strong>Why I needed this?</strong></p>
<p>Recently we have setup a server at our office for committing work to a local SVN repository and have the QA test our work whenever they are ready. We also have a staging server where we do SVN update from this repo. Now, for the last few days, I&#8217;ve found the local server to be off due to a few reasons &#8211; but every time I realized this at night when I am back home and can&#8217;t do anything to turn it on. So I thought about this Twitter alert which is sent to my cell phone immediately when the server goes offline.</p>
<p>Btw, if Twitter doesn&#8217;t send SMS to your country, don&#8217;t worry. Check out the excellent service at <a href="http://twe2.com/">Twe2</a> that I&#8217;ve been using for a couple days.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/03/php-twitter-server-monitoring-curl-tips-rest-api/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>A Workshop on &#8220;Freelancing IT Jobs &#8211; How to Make Yourself Ready&#8221;</title>
		<link>http://www.phpfour.com/blog/2009/03/a-workshop-on-freelancing-it-jobs-how-to-make-yourself-ready/</link>
		<comments>http://www.phpfour.com/blog/2009/03/a-workshop-on-freelancing-it-jobs-how-to-make-yourself-ready/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 18:48:14 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[freelancing]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=225</guid>
		<description><![CDATA[Today I facilitated this workshop on Freelancing, organized by BDjobs.com. The primary focus of the workshop was to introduce the concept of freelancing to the attendee&#8217;s as well as to provide them with a general hands-on path on how to start freelancing. The total workshop covered a variety of sections starting from freelancing overview, freelance [...]]]></description>
			<content:encoded><![CDATA[<p>Today I facilitated this workshop on Freelancing, organized by <a href="http://training.bdjobs-server.com/">BDjobs.com</a>. The primary focus of the workshop was to introduce the concept of freelancing to the attendee&#8217;s as well as to provide them with a general hands-on path on how to start freelancing. The total workshop covered a variety of sections starting from freelancing overview, freelance site reviews, tips on building a professional profile, the bidding process, tips on successful bidding, client management techniques, payment pitfalls, payment methods, etc.</p>
<blockquote class="left"><p>You can download the presentation file here in two formats: <a title="Freelancing IT Jobs" href="http://www.phpfour.com/blog/downloads/FreelancingPDF">PDF</a> and <a title="Freelancing IT Jobs" href="http://www.phpfour.com/blog/downloads/FreelancingPPT">Powerpoint</a>.</p></blockquote>
<p>The full workshop description is provided below. If you&#8217;re interested in attending the next workshop on April, get in touch with <a href="http://training.bdjobs-server.com/">BDjobs.com</a>.</p>
<p><span id="more-225"></span></p>
<blockquote>
<p style="text-align: center;"><strong>Freelancing IT Jobs &#8211; How to Make Yourself Ready</strong></p>
<p>A freelancer is a person who pursues a profession without a long-term commitment to any particular employer. A freelancer provides some sort of service whether it is design, programming, content writing or almost any other occupation. The main difference is that a freelancer has many clients rather than one steady employer. Freelancers often charge by the hour, the day or the project and are effectively running a small business with their skill set as the star product.</p>
<p>Although you might be thinking that freelancing is simply a different kind of job, in fact it is running your own business. When you are a freelancer, you are a one-person business. At some point you might even expand to a larger operation by hiring staff. Or you could remain a freelancer permanently.</p>
<p>So, if you&#8217;re looking for the next major break in your career OR you&#8217;re a fresh graduate who wants to make a living OR you want to check what the thing freelancing is, this workshop will help you out.</p>
<p><span style="text-decoration: underline;">Contents of Training:</span></p>
<p><strong>Session One: Introduction to IT Freelancing</strong></p>
<p>1. Introduction</p>
<ul>
<li>What is freelancing?</li>
<li>Benefits of freelancing</li>
<li>Type of freelancing scope</li>
<li>Type of freelancing jobs</li>
</ul>
<p>2. The Basics</p>
<ul>
<li>Things you need to start freelancing</li>
<li>Popular freelancing websites</li>
<li>Early success factors</li>
<li>Preparing yourself</li>
</ul>
<p><strong>Session two: Successful Freelancing</strong></p>
<p>1. Getting Projects</p>
<ul>
<li>Signing up in freelancing sites</li>
<li>Building a good profile</li>
<li>Successful bidding</li>
<li>Project scope &amp; Timing</li>
<li>Project budget</li>
</ul>
<p>2. Working with Project</p>
<ul>
<li>Milestones and deadlines</li>
<li>Communication</li>
<li>Track progress</li>
</ul>
<p>3. Working with Clients</p>
<ul>
<li>Essential client skills</li>
<li>Professional Relationship</li>
<li>How to keep client happy</li>
</ul>
<p><strong>Session three: Payments and Others</strong></p>
<p>1. Getting Paid</p>
<ul>
<li>Status reports</li>
<li>Invoices</li>
<li>Payment methods</li>
<li>How to avoid payment pitfalls</li>
</ul>
<p>2. Questions &amp; Answers</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/03/a-workshop-on-freelancing-it-jobs-how-to-make-yourself-ready/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Payment Library for Paypal, Authorize.net and 2Checkout (2CO)</title>
		<link>http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/</link>
		<comments>http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 20:03:27 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[Code Library]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2checkout]]></category>
		<category><![CDATA[authorize.net]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[exciting]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wrapper]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=207</guid>
		<description><![CDATA[If you are like me, whenever you need to work with a 3rd party API or a gateway, you&#8217;d first search in Google for a possible wrapper for it in PHP. When it comes to supporting payment gateways, you get bunch of libraries in the search results who are fundamentally different. Some of them are [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me, whenever you need to work with a 3rd party API or a gateway, you&#8217;d first search in Google for a possible wrapper for it in PHP. When it comes to supporting payment gateways, you get bunch of libraries in the search results who are fundamentally different. Some of them are old PHP 3/4 ones, some are new, some may need PEAR, etc.</p>
<p>As they were not required together in one single project, I used them whenever needed. But in one project, I needed them all. I thoughts it&#8217;s a chance and decided to stop using them and wrote my own ones where I can use the same methods for all the gateways.</p>
<p>So, here is an abstract PaymentGateway library which is being extended to be used for three popular payment gateways (<a href="http://www.paypal.com">Paypal</a>, <a href="http://www.authorize.net">Authorize.net</a>, and <a href="http://www.2checkout.com">2Checkout</a>) in order to provide you with a similar way of using them. Note that the libraries are for basic usage only and do not contain options for recurring payments. Without much babble, let&#8217;s see a few examples of how you can use them.</p>
<blockquote class="left"><p>You can straight-away download the <strong><a target="_blank" href="http://www.phpfour.com/blog/downloads/payment" title="Download payment.zip">package</a></strong> with all the libraries, examples, and readme.</p></blockquote>
<p><strong>Paypal</strong></p>
<p>In order to process payments using Paypal, you&#8217;ll need to follow these steps:</p>
<p>1. Send the required information to Paypal (snippet 1). Be sure to specify your Paypal email where you want to receive the funds, the success and failure pages, the IPN page, and the product information. The example has the test mode ON, which you will not need in real scenario.</p>
<p>2. Create a payment success page where Paypal will send your customer after payment.</p>
<p>3. Create a payment failure page where Paypal will send your customer after failed payment.</p>
<p>4. Create a IPN page where Paypal will send payment notification in the background. Make sure you use/remove the test mode in conjunction with step 1. (snippet 2)</p>
<pre class="brush: php">
&lt;?php

// Include the paypal library
include_once (&#039;Paypal.php&#039;);

// Create an instance of the paypal library
$myPaypal = new Paypal();

// Specify your paypal email
$myPaypal-&gt;addField(&#039;business&#039;, &#039;YOUR_PAYPAL_EMAIL&#039;);

// Specify the currency
$myPaypal-&gt;addField(&#039;currency_code&#039;, &#039;USD&#039;);

// Specify the url where paypal will send the user on success/failure
$myPaypal-&gt;addField(&#039;return&#039;, &#039;http://YOUR_HOST/payment/paypal_success.php&#039;);
$myPaypal-&gt;addField(&#039;cancel_return&#039;, &#039;http://YOUR_HOST/payment/paypal_failure.php&#039;);

// Specify the url where paypal will send the IPN
$myPaypal-&gt;addField(&#039;notify_url&#039;, &#039;http://YOUR_HOST/payment/paypal_ipn.php&#039;);

// Specify the product information
$myPaypal-&gt;addField(&#039;item_name&#039;, &#039;T-Shirt&#039;);
$myPaypal-&gt;addField(&#039;amount&#039;, &#039;9.99&#039;);
$myPaypal-&gt;addField(&#039;item_number&#039;, &#039;001&#039;);

// Specify any custom value
$myPaypal-&gt;addField(&#039;custom&#039;, &#039;muri-khao&#039;);

// Enable test mode if needed
$myPaypal-&gt;enableTestMode();

// Let&#039;s start the train!
$myPaypal-&gt;submitPayment();
</pre>
<p><em>Snippet 1</em><br />
<span id="more-207"></span></p>
<pre class="brush: php">

&lt;?php

// Include the paypal library
include_once (&#039;Paypal.php&#039;);

// Create an instance of the paypal library
$myPaypal = new Paypal();

// Log the IPN results
$myPaypal-&gt;ipnLog = TRUE;

// Enable test mode if needed
$myPaypal-&gt;enableTestMode();

// Check validity and write down it
if ($myPaypal-&gt;validateIpn())
{
    if ($myPaypal-&gt;ipnData[&#039;payment_status&#039;] == &#039;Completed&#039;)
    {
         file_put_contents(&#039;paypal.txt&#039;, &#039;SUCCESS&#039;);
    }
    else
    {
         file_put_contents(&#039;paypal.txt&#039;, &quot;FAILURE\n\n&quot; . $myPaypal-&gt;ipnData);
    }
}
</pre>
<p><em>Snippet 2</em></p>
<p><strong>Authorize.net</strong></p>
<p>In order to process payments using Authorize.net, you&#8217;ll need to follow these steps:</p>
<p>1. Send the required information to Authorize.net(snippet 3). Be sure to specify your Authorize.net login and secret key, the success/failure pages, the IPN page, and the product information. The example has the test mode ON, which you will not need in real scenario.</p>
<p>2. Create a payment success/failure page where Authorize.net will send your customer after payment.</p>
<p>3. Create a IPN page where Authorize.net will send payment notification in the background. Make sure you use/remove the test mode in conjunction with step 1. (snippet 4)</p>
<p>4. In order to set the secret key, log into your authorize.net merchant account. Go to &#8220;MD5 Hash&#8221; menu and set a secret word to desired values and use that in the &#8220;setUserInfo&#8221; function showed in the example.</p>
<pre class="brush: php">
&lt;?php

// Include the paypal library
include_once (&#039;Authorize.php&#039;);

// Create an instance of the authorize.net library
$myAuthorize = new Authorize();

// Specify your authorize.net login and secret
$myAuthorize-&gt;setUserInfo(&#039;YOUR_LOGIN&#039;, &#039;YOUR_SECRET_KEY&#039;);

// Specify the url where authorize.net will send the user on success/failure
$myAuthorize-&gt;addField(&#039;x_Receipt_Link_URL&#039;, &#039;http://YOUR_HOST/payment/authorize_success.php&#039;);

// Specify the url where authorize.net will send the IPN
$myAuthorize-&gt;addField(&#039;x_Relay_URL&#039;, &#039;http://YOUR_HOST/payment/authorize_ipn.php&#039;);

// Specify the product information
$myAuthorize-&gt;addField(&#039;x_Description&#039;, &#039;T-Shirt&#039;);
$myAuthorize-&gt;addField(&#039;x_Amount&#039;, &#039;9.99&#039;);
$myAuthorize-&gt;addField(&#039;x_Invoice_num&#039;, rand(1, 100));
$myAuthorize-&gt;addField(&#039;x_Cust_ID&#039;, &#039;muri-khao&#039;);

// Enable test mode if needed
$myAuthorize-&gt;enableTestMode();

// Let&#039;s start the train!
$myAuthorize-&gt;submitPayment();
</pre>
<p><em>Snippet 3</em></p>
<pre class="brush: php">

&lt;?php

// Include the paypal library
include_once (&#039;Authorize.php&#039;);

// Create an instance of the authorize.net library
$myAuthorize = new Authorize();

// Log the IPN results
$myAuthorize-&gt;ipnLog = TRUE;

// Specify your authorize login and secret
$myAuthorize-&gt;setUserInfo(&#039;YOUR_LOGIN&#039;, &#039;YOUR_SECRET_KEY&#039;);

// Enable test mode if needed
$myAuthorize-&gt;enableTestMode();

// Check validity and write down it
if ($myAuthorize-&gt;validateIpn())
{
    file_put_contents(&#039;authorize.txt&#039;, &#039;SUCCESS&#039;);
}
else
{
    file_put_contents(&#039;authorize.txt&#039;, &quot;FAILURE\n\n&quot; . $myPaypal-&gt;ipnData);
}
</pre>
<p><em>Snippet 4</em></p>
<p><strong>2Checkout</strong></p>
<p>In order to process payments using 2Checkout, you&#8217;ll need to follow these steps:</p>
<p>1. Send the required information to 2Checkout(snippet 5). Be sure to specify your 2Checkout vendor id, the return page, and the product information. Please note that 2Checkout does not send IPN in the background, so you will need to handle the payment data in the return page. The example has the test mode ON, which you will not need in real scenario. </p>
<p>2. Create a return page where 2Checkout will send your customer after payment. This is also where you will need to retrieve and use the payment data. Make sure you use/remove the test mode in conjunction with step 1. (snippet 6)</p>
<p>3. In order to set the secret key, log into your 2checkout.com account and go to &#8220;Look and Feel&#8221; section. At the bottom enter the &#8220;Secret Word&#8221; and use it in the IPN verification process as shown in the example.</p>
<pre class="brush: php">
&lt;?php

// Include the paypal library
include_once (&#039;TwoCo.php&#039;);

// Create an instance of the authorize.net library
$my2CO = new TwoCo();

// Specify your 2CheckOut vendor id
$my2CO-&gt;addField(&#039;sid&#039;, &#039;YOUR_VENDOR_ID&#039;);

// Specify the order information
$my2CO-&gt;addField(&#039;cart_order_id&#039;, rand(1, 100));
$my2CO-&gt;addField(&#039;total&#039;, &#039;9.99&#039;);

// Specify the url where authorize.net will send the IPN
$my2CO-&gt;addField(&#039;x_Receipt_Link_URL&#039;, &#039;http://YOUR_HOST/payment/twoco_ipn.php&#039;);
$my2CO-&gt;addField(&#039;tco_currency&#039;, &#039;USD&#039;);
$my2CO-&gt;addField(&#039;custom&#039;, &#039;muri-khao&#039;);

// Enable test mode if needed
$my2CO-&gt;enableTestMode();

// Let&#039;s start the train!
$my2CO-&gt;submitPayment();
</pre>
<p><em>Snippet 5</em></p>
<pre class="brush: php">

&lt;?php

// Include the paypal library
include_once (&#039;TwoCo.php&#039;);

// Create an instance of the authorize.net library
$my2CO = new TwoCo();

// Log the IPN results
$my2CO-&gt;ipnLog = TRUE;

// Specify your authorize login and secret
$my2CO-&gt;setSecret(&#039;YOUR_SECRET_KEY&#039;);

// Enable test mode if needed
$my2CO-&gt;enableTestMode();

// Check validity and write down it
if ($my2CO-&gt;validateIpn())
{
    file_put_contents(&#039;2co.txt&#039;, &#039;SUCCESS&#039;);
}
else
{
    file_put_contents(&#039;2co.txt&#039;, &quot;FAILURE\n\n&quot; . $my2CO-&gt;ipnData);
}
</pre>
<p><em>Snippet 6</em></p>
<p>Hope this will help you integrate the payment gateways in an easy manner. If you have any questions, or find any bug, have a suggestion, feel free to post them as comment here. Btw, this library is released under the MIT license.</p>
<p><strong>Cheers!</strong></p>
<h3>Download</h3>
<table cellspacing="0" cellpadding="2" border="0" width="698">
<tbody>
<tr>
<td width="42"><a target="_blank" href="http://www.phpfour.com/blog/downloads/payment" title="Download payment.zip"><img src="http://www.phpfour.com/images/download.gif" border="0" /></a></td>
<td width="650"><strong>payment.zip</strong><br/>PHP Payment Library for Paypal, Authorize.net and 2Checkout<br/>Downloaded: <strong>6591</strong> times</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/feed/</wfw:commentRss>
		<slash:comments>1148</slash:comments>
		</item>
		<item>
		<title>Seven Things</title>
		<link>http://www.phpfour.com/blog/2009/02/seven-things/</link>
		<comments>http://www.phpfour.com/blog/2009/02/seven-things/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 21:16:16 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[seven]]></category>
		<category><![CDATA[strange]]></category>
		<category><![CDATA[things]]></category>
		<category><![CDATA[weird]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=204</guid>
		<description><![CDATA[Well, this seven unknown things internet meme has been circulating in the web for a while and I am joining after seeing this in a few blogs I follow. However, haven&#8217;t seen this in my blogger network from Bangladesh so hope it will make a few laughs.
So here goes seven random (weird) things about me:
1. [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this <a href="http://shiflett.org/blog/2009/jan/seven-things">seven</a> <a href="http://elizabethmariesmith.com/2009/01/seven-weird-things/">unknown</a> <a href="http://naramore.net/blog/seven-things">things</a> internet meme has been circulating in the web for a while and I am joining after seeing this in a few blogs I follow. However, haven&#8217;t seen this in my blogger network from Bangladesh so hope it will make a few laughs.</p>
<p>So here goes seven random (weird) things about me:</p>
<p>1. The veins in my left eyes are dried up, so I practically use my right eye for everything&#8230;pirate king!</p>
<p>2. The real break in my programming life came when I went to a programming contest with a team and was declined to participate. We had our rights and they later let us in, but gave us a almost broken PC. We cracked three out of 5 problems straight in DOS edit as the compiler would hardly run <img src='http://www.phpfour.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>3. I do not watch TV programs for the last 5 years. DVDs and downloaded movies/TV series are the only source of entertainment. My most fav TV series is <a href="http://en.wikipedia.org/wiki/X-Files">The X Files</a>.</p>
<p>4. When I was a kid, I was damn fond of toys. I had a whole collection of figures from HE-MAN, J.I.JOE, Thundercats, Transformers, and a few others. </p>
<p>5. I was present only in <strong>48% classes</strong> in my second year in college, whereas the rule of thumb was a minimum of <strong>85%</strong>. After the test exams, I was given a punishment of attending to library from 8am to 5pm for 26 days where the only thing allowed is study (textbook only). No friends, no gossip, no newspaper. </p>
<p>However, I convinced my father that this punishment was imposed to me as one teacher did not like my attitude in his class; i made my father to the principal with an application where its mentioned that I cannot attend this due to medical condition. Principal had to agree and I only had to do it for 2hrs for the sake of records <img src='http://www.phpfour.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>6. The first program I wrote for money was a file copying &#038; renaming program in VB6 for $20. It would transfer some old mail server (don&#8217;t rem the name) files from an old server to a new one and would rename their extension to match Microsoft Exchange. Exchange was smart enough to read &#038; convert automatically, so it looked as if the program did the conversion. Heh heh.</p>
<p>The fun part is, later another company was somehow convinced that it&#8217;s a huge work and went into a partnership with me where I received a down payment of $1500 and a 30% profit sharing with the same application plus a few UI improvement. Not bad <img src='http://www.phpfour.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>7. I never studied Computer Science nor did any programming classes. I have been in business studies concentration since school and did my bachelors in Business Administration (BBA). Currently I&#8217;m pursuing my masters in Business Administration (MBA) as well.</p>
<p>Here are the seven people I&#8217;m tagging:</p>
<p>1. <a href="http://hasin.wordpress.com">Hasin Hayder</a><br />
2. <a href="http://ajaxray.com">Anis Uddin Ahmad</a><br />
3. <a href="http://hasan.we4tech.com">NHM Tanveer Hossain Khan</a><br />
4. <a href="http://omi.net.bd">Omi Azad</a><br />
5. <a href="http://www.trivuz.com">Trivuz</a><br />
6. <a href="http://www.fanphp.com/">M.M.H Masud</a><br />
7. <a href="http://www.suhreedsarkar.com/">Suhreed Sarkar</a></p>
<p>And here goes the rules:</p>
<p>- 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&#8217;ve been tagged by leaving a comment on their blogs and/or Twitter.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/02/seven-things/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title>
		<link>http://www.phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/</link>
		<comments>http://www.phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 21:27:47 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[cross-domain]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[essential]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186</guid>
		<description><![CDATA[Greetings to all the readers of my blog. 
Many of you have been writing to me in the last couple days when I took the site down. The main objective was to add the new theme and push a few code updates of the existing libraries. I really appreciate your concern and would like to [...]]]></description>
			<content:encoded><![CDATA[<p>Greetings to all the readers of my blog. </p>
<p>Many of you have been writing to me in the last couple days when I took the site down. The main objective was to add the new theme and push a few code updates of the existing libraries. I really appreciate your concern and would like to reassure you that the site is up and will be up as usual <img src='http://www.phpfour.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Now, besides the slightly customized theme from Elegant Themes, I have put a few code updates. They are detailed below:</p>
<h3>Extended Model for CodeIgniter</h3>
<p>The <a href="http://www.phpfour.com/blog/2008/07/extended-model-for-codeigniter/">original version</a> of the Extended Model for CodeIgniter has been serving many people well. Although most users loved the nifty functions of the Model, many (including me) didn&#8217;t like the hacking of CI core to get this functionality. With the release of CodeIgniter 1.7, we can avoid that as we can now overload the Model class of CI like the other libraries. Follow this instruction:</p>
<p>1. Download the updated version from <a href="http://www.phpfour.com/blog/downloads/model-ci-2">here</a><br />
2. Put it in your application/libraries folder<br />
3. In your model files, use it this way: <strong>class Product extends MY_Model</strong><br />
4. Everything else is same just like the <a href="http://www.phpfour.com/blog/2008/07/extended-model-for-codeigniter/">original</a> one</p>
<h3>HTTP Class</h3>
<p>There is not much update in this class except for a few bug fixes (thanks to you guys). Also, I have included a license file in the package as many of you have asked. It&#8217;s released under the MIT license. The original post is <a href="http://www.phpfour.com/blog/2008/01/php-http-class/">here</a> for reference. </p>
<p>Download the update from <a href="http://www.phpfour.com/blog/downloads/http-class">here</a> and the API reference is <a href="http://www.phpfour.com/lib/http">here</a>.</p>
<h3>Cross-domain AJAX calls using PHP</h3>
<p>A minor bug fix in the code. Thanks to a few of you who pointed them out. Original post is <a href="http://www.phpfour.com/blog/2008/03/cross-domain-ajax-using-php/">here</a>. Download the update from <a href="http://www.phpfour.com/blog/downloads/transport">here</a>.</p>
<p>I have accelerated plans for the blog in 2009 so stay tuned for some worthy posts in this month. And do <a href="http://www.phpfour.com/blog/contact-me/">write to me</a> if you feel you have any questions/ideas/suggestions.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Nokia N81 8GB</title>
		<link>http://www.phpfour.com/blog/2008/12/nokia-n81-8gb-mobile-phone/</link>
		<comments>http://www.phpfour.com/blog/2008/12/nokia-n81-8gb-mobile-phone/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 13:39:54 +0000</pubDate>
		<dc:creator>Emran Hasan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mobile phone]]></category>
		<category><![CDATA[exciting]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[n81]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[nseries]]></category>

		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=178</guid>
		<description><![CDATA[Today I bought a Nokia N81 8GB smartphone from my friend Nesar. This is an upgrade from my previous Nokia 6300, which I&#8217;ve been using for 1.5 year (thats the longest time I&#8217;ve used one model). The Nseries of Nokia has been attracting a lot of people lately, with their great music and photo capture [...]]]></description>
			<content:encoded><![CDATA[<p>Today I bought a <strong>Nokia N81 8GB</strong> smartphone from my friend Nesar. This is an upgrade from my previous <a title="Nokia 6300" href="http://www.phpfour.com/blog/2007/08/11/nokia-6300/" target="_blank">Nokia 6300</a>, which I&#8217;ve been using for 1.5 year (thats the longest time I&#8217;ve used one model). The <em>Nseries</em> of Nokia has been attracting a lot of people lately, with their great music and photo capture features. One of my colleagues, <a href="http://www.ajaxray.com">Anis</a>, also bought <a title="Anis N73 photos" href="http://www.flickr.com/photos/anis_niit" target="_blank">N73</a> just two months back.</p>
<p style="text-align: center;"><a href="http://www.phpfour.com/blog/wp-content/uploads/2008/12/nokia-n81.jpg"><img class="aligncenter size-full wp-image-179" title="Nokia N81 8GB" src="http://www.phpfour.com/blog/wp-content/uploads/2008/12/nokia-n81.jpg" alt="Nokia N81 8GB" width="536" height="456" /></a><br /><strong>Nokia N81 8GB</strong></p>
<p>Now, good points first. The N81boosts an extremely loud set of sterio speakers &#8211; combined with its Music Express, it delivers the highest quality of music I&#8217;ve ever purchased. Combined with the built-in FM radion, the dedicated music keys, and a multimedia menu &#8211; this is a <strong>music powerhouse</strong>, thanks to the all new Symbian 9.3 OS.</p>
<p>The Symbian OS is superb with all the applications and now has some stunning gameplay capabilities. The phone also has all kind of connectivity point you might need &#8211; GPRS, EDGE, Wifi, Bluetooth, WLAN, 3G. And don&#8217;t forget the built-in 8GB memory.</p>
<p>The only downside of this phone is the camera. It&#8217;s a 2 megapixel camera &#8211; which I don&#8217;t have any clue how got into a Nseries phone. If there is not enough light, the pictures are somewhat blurry. It has flash and a number of picture modes, so its a decent one &#8211; but nowhere in comparison with other Nseries 3.2mp and 5mp cameras.</p>
<p>All in all, here are the facts:</p>
<ul>
<li>2.4” QVGA main color display (320 x 240 pixels), up to 16.7 million colors</li>
<li>S60 3rd Edition Feature Pack 1 based on Symbian OS v9.2</li>
<li>Dedicated media keys for quick and easy access to music and video</li>
<li>WLAN IEEE802.11 b/g with UPnP (Universal Plug and Play) support</li>
<li>Bluetooth Specification 2.0 (profiles supported: DUN, OPP, FTP, HFP, GOEP, GAP, SPP, HSP, BIP, A2DP)</li>
<li>Micro USB 2.0 Full Speed (mass storage class)</li>
<li>Nokia AV Connector 3.5mm</li>
<li>Up to 2 megapixel (1600&#215;1200 pixels) camera, MPEG-4 VGA video capture of up to 15fps</li>
<li>Zoom: digital up to 20x</li>
<li>Front camera (CIF)</li>
<li>Video call and video sharing support (WCDMA network services)</li>
<li>Integrated flash (modes: on, off, automatic, redeye reduction)</li>
<li>Rotating gallery with Navi wheel support</li>
<li>Nokia Nseries digital music player supports MP3 (VBR), AAC, eAAC+, AAC+, WMA/M4A, WAV</li>
<li>OMA DRM 1.x, 2.0, Windows Media DRM (OTI/OTA with Nokia Music Store*)</li>
<li>Synchronize music with Windows Media Player 11</li>
<li>Media keys (play/pause, stop, forward, rewind)</li>
<li>Stereo FM radio (87.5-108MHz /76-90MHz)</li>
</ul>
<p>Let&#8217;s see how long it can serve my ever-growing thirst of technology <img src='http://www.phpfour.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpfour.com/blog/2008/12/nokia-n81-8gb-mobile-phone/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
