<?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>Omar Kattan &#187; Code</title>
	<atom:link href="http://www.omarkattan.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.omarkattan.com</link>
	<description>search in a nutshell</description>
	<lastBuildDate>Mon, 26 Jul 2010 14:19:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Search Engines Agree on Canonical Tag</title>
		<link>http://www.omarkattan.com/2009/02/14/search-engines-agree-on-canonical-tag/</link>
		<comments>http://www.omarkattan.com/2009/02/14/search-engines-agree-on-canonical-tag/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 12:08:59 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Search News]]></category>
<category>canonical</category><category>canonicalisation</category>
		<guid isPermaLink="false">http://www.omarkattan.com/2009/02/14/search-engines-agree-on-canonical-tag/</guid>
		<description><![CDATA[An agreement was struck yesterday by the three main search engines (Google, Yahoo and MSN) on the adoption of a new tag to tackle canonicalisation in the SERPs. Canonicalisation is the challenge of having multiple pages of the same page due to outdated software such as a content management system or forum. Examples of pages [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2009/02/14/search-engines-agree-on-canonical-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code to Grab Google PageRank</title>
		<link>http://www.omarkattan.com/2008/10/24/php-code-to-grab-google-pagerank/</link>
		<comments>http://www.omarkattan.com/2008/10/24/php-code-to-grab-google-pagerank/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 13:46:55 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2008/10/24/256/</guid>
		<description><![CDATA[Here is the code to grab Google pagerank for any website.  This can be very useful in Buzz Monitoring applications or tools that measure importance of backlinks (including competitors) Code: &#60;?php   define(&#8216;GOOGLE_MAGIC&#8217;, 0xE6359A60);   function _zeroFill($a, $b){     $z = hexdec(80000000);     if ($z &#38; $a){       $a = ($a&#62;&#62;1);       $a &#38;= (~$z); [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2008/10/24/php-code-to-grab-google-pagerank/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Code to Grab Alexa Traffic Ranking</title>
		<link>http://www.omarkattan.com/2008/10/24/php-code-to-grab-alexa-traffic-ranking/</link>
		<comments>http://www.omarkattan.com/2008/10/24/php-code-to-grab-alexa-traffic-ranking/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 13:35:19 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2008/10/24/php-code-to-grab-alexa-traffic-ranking/</guid>
		<description><![CDATA[Here is a php code that lets you retrieve a website&#8217;s alexa ranking, useful in web applications that measure importance of webpages (such as bespoke link popularity tools). For this code snippet to work CURL library for php needs to be enabled on your server. Code:  &#60;?php  function alexaRank($domain)  { $ch = curl_init(&#8216;http://alexa.com/data/details/traffic_details?url=&#8217;.$domain);     curl_setopt($ch, CURLOPT_TIMEOUT, 50);     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);     curl_setopt($ch, CURLOPT_HEADER, 1);     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);     curl_setopt($ch, CURLOPT_USERAGENT, &#8221;Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1&#8243;);     $curl_ret = curl_exec($ch); [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2008/10/24/php-code-to-grab-alexa-traffic-ranking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Favicon &#8211; that little added touch</title>
		<link>http://www.omarkattan.com/2008/05/16/favicon-that-little-added-touch/</link>
		<comments>http://www.omarkattan.com/2008/05/16/favicon-that-little-added-touch/#comments</comments>
		<pubDate>Fri, 16 May 2008 16:55:37 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Search Engine Marketing]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2008/05/16/favicon-that-little-added-touch/</guid>
		<description><![CDATA[Have you added a favicon to your site?  If you haven&#8217;t then this post will guide you through the simple process.  But before I start, let me explain what a favicon is.  A favicon is the little icon that shows up in the browser and tabs of your computer (depicted below).  It can distinguish your [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2008/05/16/favicon-that-little-added-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inline Editing with Ajax</title>
		<link>http://www.omarkattan.com/2008/04/24/inline-editing-with-ajax/</link>
		<comments>http://www.omarkattan.com/2008/04/24/inline-editing-with-ajax/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 08:56:29 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2008/04/24/inline-editing-with-ajax/</guid>
		<description><![CDATA[Last week I came across a tutorial and code for inline editing using Ajax.  The reason I was looking for this sort of application was to implement a project management solution for one of my clients. What inline editing does is allow you to edit an online document on the fly using AJAX, PHP and MYSQL.  An [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2008/04/24/inline-editing-with-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meta Tags for E-tail Sites</title>
		<link>http://www.omarkattan.com/2008/03/07/meta-tags-for-e-tail-sites/</link>
		<comments>http://www.omarkattan.com/2008/03/07/meta-tags-for-e-tail-sites/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 12:21:59 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SEO Best Practices]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2008/03/07/meta-tags-for-e-tail-sites/</guid>
		<description><![CDATA[I recently conducted a competitive analysis for one of my etail clients and to my astomishment, I found that out of the 13 competitors I tracked, none utilised the meta description tag on their site.  This prompted me to write a post on this discussing meta tags and best practices for using them on your [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2008/03/07/meta-tags-for-e-tail-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimising Images on Your Site</title>
		<link>http://www.omarkattan.com/2008/01/16/optimising-images-on-your-site/</link>
		<comments>http://www.omarkattan.com/2008/01/16/optimising-images-on-your-site/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 04:43:08 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2008/01/16/optimising-images-on-your-site/</guid>
		<description><![CDATA[A very juicy water mellon With the concept of &#8220;universal search&#8220; gaining ground, it is becoming more and more crucial to optimise all content on your site for search including videos, pdf, podcasts and images. This blog post will focus on optimising images on your site.  As an example, if you wanted to optimise an image on your site for the [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2008/01/16/optimising-images-on-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Charatcteristics of a File &#8211; Static to Dynamic</title>
		<link>http://www.omarkattan.com/2007/10/22/changing-charatcteristics-of-a-file-static-to-dynamic/</link>
		<comments>http://www.omarkattan.com/2007/10/22/changing-charatcteristics-of-a-file-static-to-dynamic/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 06:46:00 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SEO Tips & Tricks]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/10/22/changing-charatcteristics-of-a-file-static-to-dynamic/</guid>
		<description><![CDATA[Did you know that you are able to change the characteristics of a static file such as a .html or .txt file to allow it to accept dynamic code such as php or asp?  Well you can, here&#8217;s how&#8230; Lets say you&#8217;re looking to create a dynamic .csv  or .txt for a shopping feed for one of the [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/10/22/changing-charatcteristics-of-a-file-static-to-dynamic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This Site May Harm Your Computer</title>
		<link>http://www.omarkattan.com/2007/09/03/this-site-may-harm-your-computer/</link>
		<comments>http://www.omarkattan.com/2007/09/03/this-site-may-harm-your-computer/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 12:19:38 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Gadgets & Tools]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/09/03/this-site-may-harm-your-computer/</guid>
		<description><![CDATA[&#8220;This site may harm your computer&#8221;, this is what Google placed underneath all my listings towards the end of last week, why?&#8230; Well basically because a hacker managed to penetrate my server and place invisible code designed to place &#8220;trojan horses&#8221; onto my users&#8217; computers. If you&#8217;re unlucky enough to be tagged with &#8221;This Site May Harm Your Computer&#8221; [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/09/03/this-site-may-harm-your-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing your Robots.txt File</title>
		<link>http://www.omarkattan.com/2007/07/18/managing-your-robotstxt-file/</link>
		<comments>http://www.omarkattan.com/2007/07/18/managing-your-robotstxt-file/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 21:57:33 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/07/18/managing-your-robotstxt-file/</guid>
		<description><![CDATA[A robots.txt file is a text file that manages the search engines that listen to its instructions.  Major search engines such as Google, Yahoo and MSN all listen to the robots.txt file and obey the instruction placed in it. What kind of instructions can you place in a robots.txt file?  Well for one you can [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/07/18/managing-your-robotstxt-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s Unavailable_After Meta Tag</title>
		<link>http://www.omarkattan.com/2007/07/14/googles-unavailable_after-meta-tag/</link>
		<comments>http://www.omarkattan.com/2007/07/14/googles-unavailable_after-meta-tag/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 19:07:41 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/07/14/googles-unavailable_after-meta-tag/</guid>
		<description><![CDATA[Google is planning to introduce a new meta tag to deal with time sensitive information on websites.  The new tag -dubbed &#8220;unavailable_after&#8221; &#8211; was announced by  Dan Crow, director of crawl systems at Google at a recent SEMNE conference. The &#8220;unavailable_after&#8221; tag will for instance allow webmasters to tell Google when a particular page on their site will no [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/07/14/googles-unavailable_after-meta-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Word Press Title Tag Optimization</title>
		<link>http://www.omarkattan.com/2007/07/02/word-press-title-tag-optimization/</link>
		<comments>http://www.omarkattan.com/2007/07/02/word-press-title-tag-optimization/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 17:47:03 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/07/02/word-press-title-tag-optimization/</guid>
		<description><![CDATA[Here a quick tip to help you optimise your Word Press title tag so that it becomes more search engine friendly. Login to your site using your favourite ftp application. Open the header.php file, it can be found in root &#62; wp-content &#62; themes &#62; your theme. Find: &#60;title&#62;&#60;?php bloginfo(&#8216;name&#8217;); ?&#62;&#60;?php wp_title(); ?&#62;&#60;/title&#62; Replace with  : &#60;title&#62;&#60;?php [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/07/02/word-press-title-tag-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Permanent (301) Redirects &#8211; Managing the Google Index</title>
		<link>http://www.omarkattan.com/2007/07/02/permanent-301-redirects-managing-the-google-index/</link>
		<comments>http://www.omarkattan.com/2007/07/02/permanent-301-redirects-managing-the-google-index/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 13:09:57 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[SEO Tips & Tricks]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/07/02/permanent-301-redirects-managing-the-google-index/</guid>
		<description><![CDATA[Have you heard of 301 (permanent) redirects?  If you haven&#8217;t let me explain what they are to you. A 301 redirect is a tool available at your disposal as a webmaster that allows you to manage your indexed pages within the major search engines including Google. Let me give you an example: 1- You have [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/07/02/permanent-301-redirects-managing-the-google-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Structure of an HTML page</title>
		<link>http://www.omarkattan.com/2007/07/01/structure-of-an-html-page/</link>
		<comments>http://www.omarkattan.com/2007/07/01/structure-of-an-html-page/#comments</comments>
		<pubDate>Sun, 01 Jul 2007 18:45:49 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/07/01/structure-of-an-html-page/</guid>
		<description><![CDATA[The basic structure of an HTML document according to W3C is as follows: HTML version information The HTML element The document head The HEAD element The TITLE element The title attribute Meta data Specifying meta data The META element Meta data profiles The document body The BODY element Element identifiers: the id and class attributes Block-level [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/07/01/structure-of-an-html-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To Validate or not to Validate</title>
		<link>http://www.omarkattan.com/2007/06/24/to-validate-or-not-to-validate/</link>
		<comments>http://www.omarkattan.com/2007/06/24/to-validate-or-not-to-validate/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 19:27:10 +0000</pubDate>
		<dc:creator>Omar Kattan</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://omarkattan.com/2007/06/24/to-validate-or-not-to-validate/</guid>
		<description><![CDATA[To Validate or not to Validate&#8230;That is the question. Does your HTML code validate? &#8230; But first, do you know what valid HTML means? Let me start by explaining what Valid HTML means. Validating HTML documents (web documents)  is conforming them to the W3C HTML and XHTML standards. So what is the W3C you may ask.  [...]]]></description>
		<wfw:commentRss>http://www.omarkattan.com/2007/06/24/to-validate-or-not-to-validate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
