<?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>Irtaza Tech Blog</title>
	<atom:link href="http://www.irtaza.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.irtaza.com</link>
	<description>Web Hosting &#124; Scripting &#124; Web Design</description>
	<lastBuildDate>Wed, 21 Dec 2011 06:29:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lytebox not working after AJAX content change load with jquery</title>
		<link>http://www.irtaza.com/scripting/javascript/lytebox-not-working-after-ajax-content-change-load-with-jquery/</link>
		<comments>http://www.irtaza.com/scripting/javascript/lytebox-not-working-after-ajax-content-change-load-with-jquery/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 06:29:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[lytebox]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=175</guid>
		<description><![CDATA[if you are having problem loading lytebox when loading content with using ajax with jquery e.g.


The main problem was that Lytebox gets initialized during page load. Since AJAX bypasses page load, the problem arises.
The Lytebox run by this function initLytebox(); so we just need to call this functions when our ajax parsed data properly.
]]></description>
			<content:encoded><![CDATA[<p>if you are having problem loading lytebox when loading content with using ajax with jquery e.g.<br />
<span id="more-175"></span></p>
<pre class="brush: plain; title: ; notranslate">$(&quot;#insidebox&quot;).load(&quot;ajax.php?cat=&quot;+cat+&quot;&amp;amp;cache=&quot; + Math.random()*99999);</pre>
<p>
The main problem was that Lytebox gets initialized during page load. Since AJAX bypasses page load, the problem arises.</p>
<p>The Lytebox run by this function <strong>initLytebox();</strong> so we just need to call this functions when our ajax parsed data properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/scripting/javascript/lytebox-not-working-after-ajax-content-change-load-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting to mobile website through javascript</title>
		<link>http://www.irtaza.com/scripting/javascript/redirecting-to-mobile-website-through-javascript/</link>
		<comments>http://www.irtaza.com/scripting/javascript/redirecting-to-mobile-website-through-javascript/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 06:36:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=171</guid>
		<description><![CDATA[A small javascript snippet can help you redirect all your mobile traffic to its specific url.
]]></description>
			<content:encoded><![CDATA[<p>A small javascript snippet can help you redirect all your mobile traffic to its specific url.<span id="more-171"></span></p>
<pre class="brush: plain; title: ; notranslate">  &lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[  

	if (screen.width &lt;  800) {document.location = &quot;small/index.html&quot;;} 

// ]]&gt;&lt;/script&gt;    </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/scripting/javascript/redirecting-to-mobile-website-through-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posting values through AJAX using jquery and getting a dynamic validation response without refreshing the page</title>
		<link>http://www.irtaza.com/scripting/php/posting-values-through-ajax-using-jquery-and-getting-a-dynamic-validation-response-without-refreshing-the-page/</link>
		<comments>http://www.irtaza.com/scripting/php/posting-values-through-ajax-using-jquery-and-getting-a-dynamic-validation-response-without-refreshing-the-page/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 07:27:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=156</guid>
		<description><![CDATA[It is now very simple to post values through AJAX using jquery for doing so we will use the following Jquery code
Step 1
&#8212;&#8212;&#8212;
Load Jquery
You can put this in the  tag
Step 2
&#8212;&#8212;&#8211;
Create a html form

 &#60;div class=&#34;left-sub&#34;&#62;Name: &#60;/div&#62;&#60;div class=&#34;left-sub&#34;&#62;&#60;input size=&#34;30&#34; name=&#34;name&#34; maxlength=&#34;45&#34; type=&#34;text&#34; id=&#34;name&#34;&#62;&#60;/div&#62; 

 &#60;div class=&#34;left-sub&#34;&#62;Company: &#60;/div&#62;&#60;div class=&#34;left-sub&#34;&#62;&#60;input size=&#34;30&#34; name=&#34;company&#34; maxlength=&#34;45&#34; type=&#34;text&#34; id=&#34;company&#34;&#62;&#60;/div&#62; 

 [...]]]></description>
			<content:encoded><![CDATA[<p>It is now very simple to post values through AJAX using jquery for doing so we will use the following Jquery code<span id="more-156"></span></p>
<p>Step 1<br />
&#8212;&#8212;&#8212;<br />
Load Jquery</p>
<pre class="brush: plain; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;	</pre>
<p>You can put this in the <head> tag</p>
<p>Step 2<br />
&#8212;&#8212;&#8211;<br />
Create a html form</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;div class=&quot;left-sub&quot;&gt;Name: &lt;/div&gt;&lt;div class=&quot;left-sub&quot;&gt;&lt;input size=&quot;30&quot; name=&quot;name&quot; maxlength=&quot;45&quot; type=&quot;text&quot; id=&quot;name&quot;&gt;&lt;/div&gt; 

 &lt;div class=&quot;left-sub&quot;&gt;Company: &lt;/div&gt;&lt;div class=&quot;left-sub&quot;&gt;&lt;input size=&quot;30&quot; name=&quot;company&quot; maxlength=&quot;45&quot; type=&quot;text&quot; id=&quot;company&quot;&gt;&lt;/div&gt; 

 &lt;div class=&quot;left-sub&quot;&gt;Email: &lt;/div&gt;&lt;div class=&quot;left-sub&quot;&gt;&lt;input size=&quot;30&quot; name=&quot;email&quot; maxlength=&quot;45&quot; type=&quot;text&quot; id=&quot;email&quot;&gt;&lt;/div&gt;

 &lt;div class=&quot;left-sub&quot;&gt;&lt;/div&gt; &lt;div class=&quot;left-sub&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;click to subscribe&quot; class=&quot;myButton2&quot; name=&quot;news&quot; id=&quot;news&quot; onclick=&quot;subscribe();&quot;&gt;&lt;/div&gt;
</pre>
<p>you can notice there is a subscribe() function on the submit button which will execute the javascript function where we will have all the Jquery code</p>
<p>Step 3<br />
&#8212;&#8212;&#8212;-<br />
Creating Jquery Code</p>
<pre class="brush: jscript; title: ; notranslate">
function subscribe(){
		 var name = $(&quot;#name&quot;).val(); // get values from the name field
		  var email = $(&quot;#email&quot;).val();
		   var company = $(&quot;#company&quot;).val();

        if(name=='') // validates the name if empty
	{
    	alert(&quot;Please enter name!&quot;);   // displays alert if empty

    }else if(email==''){alert(&quot;Please enter email!&quot;);}else if(company==''){alert(&quot;Please enter company!&quot;);}

	else{
        $.ajax({
			type: &quot;POST&quot;,
			url: &quot;index.php&quot;,
			data: {

				name : $('#name').val(), company : $('#company').val(), email : $('#email').val(), news : $('#news').val() // This is the data that will be posting in this format you can retreive this data by using $_POST['name'] and so on in php.
			},
            cache: false,
success: function(response){
//alert($(response).find(&quot;#responsemessage&quot;).text());
$('#responsemessage').html($(response).find(&quot;#responsemessage&quot;).html()); //You can create a div with id responsemessage and echo the error message in that and this code will display that error or success

}
		});

		}
		}
</pre>
<p>to understand the code above read the comments next to the line of code</p>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/scripting/php/posting-values-through-ajax-using-jquery-and-getting-a-dynamic-validation-response-without-refreshing-the-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Points to remember when making newsletter compatible with gmail, outlook, yahoo and live.com</title>
		<link>http://www.irtaza.com/scripting/points-to-remember-when-making-newsletter-compatible-with-gmail-outlook-yahoo-and-live-com/</link>
		<comments>http://www.irtaza.com/scripting/points-to-remember-when-making-newsletter-compatible-with-gmail-outlook-yahoo-and-live-com/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 12:20:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[newsletter]]></category>
		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=150</guid>
		<description><![CDATA[Creating a newsletter compatible with all the major email providers or email clients is a hectic job especially if all of them support different html codes. We have to create newsletters which very old html coding techniques which are as follows:
1) Make sure you remove the html and head tags.
2) Make sure to use tables [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a newsletter compatible with all the major email providers or email clients is a hectic job especially if all of them support different html codes. We have to create newsletters which very old html coding techniques which are as follows:<span id="more-150"></span></p>
<p>1) Make sure you remove the html and head tags.</p>
<p>2) Make sure to use tables instead of divs</p>
<p>3) You can only use inline style sheet </p>
<pre class="brush: plain; title: ; notranslate">e.g. &lt;td style=&quot;color:red&quot;&gt;&lt;/td&gt;.</pre>
<p>4) All TABLE and TD tags should should have a fixed height and width. </p>
<pre class="brush: plain; title: ; notranslate">e.g. &lt;td height=&quot;200&quot; width=&quot;100&quot;&gt;&lt;/td&gt;</pre>
<p>5) If you are using images inside the <TD> make sure in the style to make inline-height:0 </p>
<pre class="brush: plain; title: ; notranslate">e.g.&lt;td style=&quot; inline-height:0px&quot;&gt;</pre>
<p>6) To align or set font colors or styles text or even images inside the <TD> i would prefer to use <P> tag with inline style sheet</p>
<pre class="brush: plain; title: ; notranslate">e.g.&lt;p style=&quot;margin-left:23px&quot;&gt;text will come here&lt;/p&gt;</pre>
<p>7) If you still see spacing under the images try using float:left and display:block in side the image tag </p>
<pre class="brush: plain; title: ; notranslate">e.g.&lt;img src=&quot;img.jpg&quot; style=&quot;float:left; display:block&quot;&gt;</pre>
<p> <img src='http://www.irtaza.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> You cannot use background images only background colors</p>
<p>9) To align the whole newsletter to the center use the code below </p>
<pre class="brush: plain; title: ; notranslate"> &lt;table width=&quot;100%&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot; bgcolor='#FEFAE7' &gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot; align=&quot;center&quot;&gt;
&lt;strong&gt;here your enitire news letter will come with divs&lt;/strong&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TABLE&gt;
</pre>
<p>10) To change the background of the newsletter you can do that in the body tag.</p>
<pre class="brush: plain; title: ; notranslate">&lt;BODY  leftmargin=&quot;0&quot; marginwidth=&quot;0&quot; topmargin=&quot;0&quot; marginheight=&quot;0&quot; offset=&quot;0&quot; bgcolor='#212121'&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/scripting/points-to-remember-when-making-newsletter-compatible-with-gmail-outlook-yahoo-and-live-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Div height 100% not working with scrolling on IE fixed with Jquery.</title>
		<link>http://www.irtaza.com/scripting/div-100-height-scroll-issue-on-ie-fixed-with-jquery/</link>
		<comments>http://www.irtaza.com/scripting/div-100-height-scroll-issue-on-ie-fixed-with-jquery/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 11:33:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[height]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=147</guid>
		<description><![CDATA[Normally in the code with you put 100% height it with left, top, right 0 in css it would seem to work perfect in Firefox but it wont work in IE because it will not fill the area if the div is loaded with position:absolute or fixed when there is a scroll on this page. [...]]]></description>
			<content:encoded><![CDATA[<p>Normally in the code with you put 100% height it with left, top, right 0 in css it would seem to work perfect in Firefox but it wont work in IE because it will not fill the area if the div is loaded with position:absolute or fixed when there is a scroll on this page. For this reason we have to add a fixed height to the div and in order to calculate the height automatically we use JQuery height parameter. Example</p>
<p><span id="more-147"></span><br />
First Include Jquery</p>
<pre class="brush: jscript; title: ; notranslate">
 &lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Then in the head tag write the following code</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
		  $(document).ready(function(){
	$(&quot;#nameofthediv&quot;).height( $(document).height() ); 

});
	&lt;/script&gt;
</pre>
<p>and the div you can use the style like this </p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;nameofthediv&quot; style=&quot;top:0; left:0; width:100%; background-color:black&quot;&gt;
 some text here&lt;/div&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/scripting/div-100-height-scroll-issue-on-ie-fixed-with-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to write rewrite url or clean url code for Nginx server</title>
		<link>http://www.irtaza.com/web-server/how-to-write-rewrite-url-or-clean-url-code-for-nginx-server/</link>
		<comments>http://www.irtaza.com/web-server/how-to-write-rewrite-url-or-clean-url-code-for-nginx-server/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 20:17:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=144</guid>
		<description><![CDATA[When using Nginx server the rewrite commands are using in the virtual host file not in the .htaccess. But the commands used are similar to that used in .htaccess.
the sample of the virtual host with rewrite url code will look like this 
]]></description>
			<content:encoded><![CDATA[<p>When using Nginx server the rewrite commands are using in the virtual host file not in the .htaccess. But the commands used are similar to that used in .htaccess.<span id="more-144"></span></p>
<p>the sample of the virtual host with rewrite url code will look like this </p>
<pre class="brush: plain; title: ; notranslate">
server {
    server_name examplesite.com;
    access_log /var/www/html/examplesite.com/logs/access.log;
    error_log /var/www/html/examplesite.com/logs/error.log;
    root /var/www/html/examplesite.com;

       index index.html index.htm index.php;

if (!-e $request_filename)
	{
rewrite  ^/channel/(.*)/(.*)/(.*)/(.*)$  /index.php?urd=$1&amp;uri=$2&amp;cat=$3&amp;title=$4 last;
rewrite  ^/channel/(.*)/(.*)/(.*)$  /index.php?urd=$1&amp;cat=$2&amp;title=$3 last;

break;

}

    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /var/www/html/examplesite.com$fastcgi_script_name;
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/web-server/how-to-write-rewrite-url-or-clean-url-code-for-nginx-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Nginx and PHP-FastCGI or PHP-FPM on CentOS 5.xx or 6.xx and configure your website</title>
		<link>http://www.irtaza.com/servers/linux/install-nginx-and-php-fastcgi-on-centos-and-configure-your-website/</link>
		<comments>http://www.irtaza.com/servers/linux/install-nginx-and-php-fastcgi-on-centos-and-configure-your-website/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 19:55:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=142</guid>
		<description><![CDATA[First update your linux machine using 
You need EPEL Repo as by default for Centos  repos dont have nginx
for CentOS 5.xx 
for CentOS 6.xx

Install Nginx
Start Nginx
Configure your Websites
You can place your folders even in /var/www/html/ you can change the path in the below commands
Issue the following commands to create virtual hosting directories:
Configure Nginx config [...]]]></description>
			<content:encoded><![CDATA[<p>First update your linux machine using <span id="more-142"></span></p>
<p>You need EPEL Repo as by default for Centos  repos dont have nginx<br />
<strong>for CentOS 5.xx </strong></p>
<pre class="brush: plain; title: ; notranslate">rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm</pre>
<p><strong>for CentOS 6.xx</strong></p>
<pre class="brush: plain; title: ; notranslate">rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm</pre>
<pre class="brush: plain; title: ; notranslate">yum update</pre>
<p><strong><br />
Install Nginx</strong></p>
<pre class="brush: plain; title: ; notranslate">
yum install nginx php-cli php make automake gcc gcc-c++ spawn-fcgi wget
chkconfig --add nginx
chkconfig --level 35 nginx on
</pre>
<p><strong>Start Nginx</strong></p>
<pre class="brush: plain; title: ; notranslate">service nginx start</pre>
<p><strong>Configure your Websites</strong></p>
<p>You can place your folders even in /var/www/html/ you can change the path in the below commands</p>
<pre class="brush: plain; title: ; notranslate">
mkdir -p /srv/www/www.example.com/public_html
mkdir /srv/www/www.example.com/logs
chown -R nginx:nginx /srv/www/www.example.com
</pre>
<p>Issue the following commands to create virtual hosting directories:</p>
<pre class="brush: plain; title: ; notranslate">
mkdir /etc/nginx/sites-available
mkdir /etc/nginx/sites-enabled
</pre>
<p><strong>Configure Nginx config file to add your sites</strong></p>
<pre class="brush: plain; title: ; notranslate">nano /etc/nginx/nginx.conf</pre>
<p>or use vi to edit the file</p>
<p>Add the following lines to your /etc/nginx/nginx.conf file, immediately after the line for <strong>&#8220;include /etc/nginx/conf.d/*.conf&#8221;:<br />
</strong></p>
<pre class="brush: plain; title: ; notranslate"># Load virtual host configuration files.
include /etc/nginx/sites-enabled/*;</pre>
<p><strong>Define your site&#8217;s virtual host file:</strong><br />
Make a your virtual host files</p>
<pre class="brush: plain; title: ; notranslate">nano /etc/nginx/sites-available/www.example.com</pre>
<p>Add the following code in the file above</p>
<pre class="brush: plain; title: ; notranslate">server {
    server_name www.example.com example.com;
    access_log /srv/www/www.example.com/logs/access.log;
    error_log /srv/www/www.example.com/logs/error.log;
    root /srv/www/www.example.com/public_html;

    location / {
        index index.html index.htm index.php;
    }

    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /srv/www/www.example.com/public_html$fastcgi_script_name;
    }
}</pre>
<p><strong>Issue the following commands to enable the site:</strong></p>
<p>goto the enabled sites</p>
<pre class="brush: plain; title: ; notranslate">cd /etc/nginx/sites-enabled/</pre>
<p>create a symlink </p>
<pre class="brush: plain; title: ; notranslate">ln -s /etc/nginx/sites-available/www.example.com</pre>
<p>now restart nginx</p>
<pre class="brush: plain; title: ; notranslate">service nginx restart</pre>
<p>You may wish to create a test HTML page under /srv/www/www.example.com/public_html/ and view it in your browser to verify that nginx is properly serving your site (PHP will not work yet). </p>
<p><strong>Configure spawn-fcgi</strong><br />
Issue the following command sequence to download scripts to control spawn-fcgi and php-fastcgi, set privileges, make the init script run at startup, and launch it for the first ti</p>
<pre class="brush: plain; title: ; notranslate">
cd /opt
wget -O php-fastcgi-rpm.sh http://library.linode.com/assets/696-php-fastcgi-rpm.sh
mv php-fastcgi-rpm.sh /usr/bin/php-fastcgi
chmod +x /usr/bin/php-fastcgi
wget -O php-fastcgi-init-rpm.sh http://library.linode.com/assets/697-php-fastcgi-init-rpm.sh
mv php-fastcgi-init-rpm.sh /etc/rc.d/init.d/php-fastcgi
chmod +x /etc/rc.d/init.d/php-fastcgi
chkconfig --add php-fastcgi
chkconfig php-fastcgi on
/etc/init.d/php-fastcgi start
</pre>
<p><strong>Test PHP with FastCGI</strong><br />
Make a php file</p>
<pre class="brush: plain; title: ; notranslate">nano /srv/www/www.example.com/public_html/test.php</pre>
<p>add the following code</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php echo phpinfo(); ?&gt;</pre>
<p><strong>Install php-fpm</strong><br />
if you dont want to use fast cgi you can install php-fpm. You need to use remi repo to install php-fpm</p>
<pre class="brush: plain; title: ; notranslate">
su -
cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/enterprise/remi.repo</pre>
<p>now you can install it through yum</p>
<pre class="brush: plain; title: ; notranslate">
yum --enablerepo=remi install php-fpm</pre>
<p>you can now start php-fpm</p>
<pre class="brush: plain; title: ; notranslate">
service php-fpm start
</pre>
<p>when linux start put this on auto</p>
<pre class="brush: plain; title: ; notranslate">
chkconfig --add php-fpm
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/servers/linux/install-nginx-and-php-fastcgi-on-centos-and-configure-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ioncube loader atomic yum repository on CentOS</title>
		<link>http://www.irtaza.com/servers/linux/install-ioncube-loader-atomic-yum-repository-on-centos/</link>
		<comments>http://www.irtaza.com/servers/linux/install-ioncube-loader-atomic-yum-repository-on-centos/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 19:42:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[atomic]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=138</guid>
		<description><![CDATA[To install ioncube loader on centos you can just follow the below simple commands on linux make sure you have logged in as root or have sudo access
First Install the atomic yum repository
once the repo is downloaded run the following command
]]></description>
			<content:encoded><![CDATA[<p>To install ioncube loader on centos you can just follow the below simple commands on linux make sure you have logged in as root or have sudo access<span id="more-138"></span></p>
<p><strong>First Install the atomic yum repository</strong></p>
<pre class="brush: plain; title: ; notranslate">wget -q -O - http://www.atomicorp.com/installers/atomic |sh</pre>
<p>once the repo is downloaded run the following command</p>
<pre class="brush: plain; title: ; notranslate">yum install php-ioncube-loader</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/servers/linux/install-ioncube-loader-atomic-yum-repository-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove duplicate enteries using mysql query</title>
		<link>http://www.irtaza.com/database/mysql/remove-duplicate-enteries-using-mysql-query/</link>
		<comments>http://www.irtaza.com/database/mysql/remove-duplicate-enteries-using-mysql-query/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 06:11:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[delete]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=136</guid>
		<description><![CDATA[Its now very easy to delete all the duplicate entries from mysql with a single query
use 
]]></description>
			<content:encoded><![CDATA[<p>Its now very easy to delete all the duplicate entries from mysql with a single query<span id="more-136"></span></p>
<p>use
<pre class="brush: plain; title: ; notranslate">ALTER IGNORE TABLE dupTest ADD UNIQUE INDEX(fieldname);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/database/mysql/remove-duplicate-enteries-using-mysql-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Join 3 or more tables in mysql</title>
		<link>http://www.irtaza.com/database/mysql/join-3-or-more-tables-in-mysql/</link>
		<comments>http://www.irtaza.com/database/mysql/join-3-or-more-tables-in-mysql/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 12:58:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[joins]]></category>

		<guid isPermaLink="false">http://www.irtaza.com/?p=134</guid>
		<description><![CDATA[To join 3 or more tables in mysql first you have to make sure that your tables have unique id and a primary field.
Then you can join the tables like this
Just make sure you normalize your tables properly before using optimized joins
]]></description>
			<content:encoded><![CDATA[<p>To join 3 or more tables in mysql first you have to make sure that your tables have unique id and a primary field.<span id="more-134"></span></p>
<p>Then you can join the tables like this</p>
<pre class="brush: plain; title: ; notranslate">

mysql_query(&quot;
SELECT * FROM table1 as t1
LEFT JOIN  table2 as t2 on t1.id = t2.id
LEFT JOIN  table3 as t3 on t3.id = t2.id

&quot;);
</pre>
<p>Just make sure you normalize your tables properly before using optimized joins</p>
]]></content:encoded>
			<wfw:commentRss>http://www.irtaza.com/database/mysql/join-3-or-more-tables-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
