<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pinoy PHP Developer</title>
	<atom:link href="http://pinoyphpdev.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pinoyphpdev.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 22 Jun 2009 00:37:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pinoyphpdev.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pinoy PHP Developer</title>
		<link>http://pinoyphpdev.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pinoyphpdev.wordpress.com/osd.xml" title="Pinoy PHP Developer" />
	<atom:link rel='hub' href='http://pinoyphpdev.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Google translate API</title>
		<link>http://pinoyphpdev.wordpress.com/2009/06/20/google-translate-api/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/06/20/google-translate-api/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 12:04:02 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Translate]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=100</guid>
		<description><![CDATA[You may find this useful to translate some part of your site content. Usage: $google = new Google_API_translator(); $google-&#62;setOpts($text_info); $google-&#62;translate(); echo $j-&#62;out; &#8220;&#8221;, &#8220;language_pair&#8221; =&#62; &#8220;en&#124;tl&#8221;); public $out = &#8220;&#8221;; function __construct() { } function setOpts($opts) { if($opts["text"] != &#8220;&#8221;) $this-&#62;opts["text"] = $opts["text"]; if($opts["language_pair"] != &#8220;&#8221;) $this-&#62;opts["language_pair"] = $opts["language_pair"]; } function translate() { $this-&#62;out = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=100&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may find this useful to translate some part of your site content. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Usage:<br />
$google = new Google_API_translator();<br />
$google-&gt;setOpts($text_info);<br />
$google-&gt;translate();<br />
echo $j-&gt;out;</p>
<p> &#8220;&#8221;, &#8220;language_pair&#8221; =&gt; &#8220;en|tl&#8221;);<br />
    public $out = &#8220;&#8221;;</p>
<p>    function __construct() {<br />
    }</p>
<p>    function setOpts($opts) {<br />
        if($opts["text"] != &#8220;&#8221;) $this-&gt;opts["text"] = $opts["text"];<br />
        if($opts["language_pair"] != &#8220;&#8221;) $this-&gt;opts["language_pair"] = $opts["language_pair"];<br />
    }</p>
<p>    function translate() {<br />
        $this-&gt;out = &#8220;&#8221;;<br />
        $google_translator_url = &#8220;http://translate.google.com/translate_t?langpair=&#8221;.urlencode($this-&gt;opts["language_pair"]).&#8221;&amp;&#8221;;<br />
        $google_translator_data .= &#8220;text=&#8221;.urlencode($this-&gt;opts["text"]);<br />
        $gphtml = $this-&gt;postPage(array(&#8220;url&#8221; =&gt; $google_translator_url, &#8220;data&#8221; =&gt; $google_translator_data));<br />
        $out = substr($gphtml, strpos($gphtml, &#8221;
<div id="result_box">&#8220;));<br />
        $out = substr($out, 29);<br />
        $out = substr($out, 0, strpos($out, &#8220;</div>
<p>&#8220;));<br />
        $this-&gt;out = utf8_encode($out);<br />
        return $this-&gt;out;<br />
    }</p>
<p>    // post form data to a given url using curl libs<br />
    function postPage($opts) {<br />
        $html = &#8220;&#8221;;<br />
        if($opts["url"] != &#8220;&#8221; &amp;&amp; $opts["data"] != &#8220;&#8221;) {<br />
            $ch = curl_init($opts["url"]);<br />
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
            curl_setopt($ch, CURLOPT_HEADER, 1);<br />
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);<br />
            curl_setopt($ch, CURLOPT_TIMEOUT, 15);<br />
            curl_setopt($ch, CURLOPT_POST, 1);<br />
            curl_setopt($ch, CURLOPT_POSTFIELDS, $opts["data"]);<br />
            $html = curl_exec($ch);<br />
            if(curl_errno($ch)) $html = &#8220;&#8221;;<br />
            curl_close ($ch);<br />
        }<br />
        return $html;<br />
    }<br />
}<br />
?&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=100&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/06/20/google-translate-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Encrypt and Decrypt arrays in PHP</title>
		<link>http://pinoyphpdev.wordpress.com/2009/06/19/encrypt-and-decrypt-arrays-in-php/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/06/19/encrypt-and-decrypt-arrays-in-php/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:24:41 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[base64_encode]]></category>
		<category><![CDATA[decrypt]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Serialize]]></category>
		<category><![CDATA[Unserialize]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=98</guid>
		<description><![CDATA[To encrypt an array: $encrypt=base64_encode(serialize($array)); To decrypt: $decrypt=unserialize(base64_decode($encrypt)); This can be applied through URLs and storing directly to your DB.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=98&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To encrypt an array:<br />
$encrypt=base64_encode(serialize($array));</p>
<p>To decrypt:<br />
$decrypt=unserialize(base64_decode($encrypt));</p>
<p>This can be applied through URLs and storing directly to your DB.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=98&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/06/19/encrypt-and-decrypt-arrays-in-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Download and Split file in PHP and Linux</title>
		<link>http://pinoyphpdev.wordpress.com/2009/06/19/download-and-split-file-in-php-and-linux/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/06/19/download-and-split-file-in-php-and-linux/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:12:09 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=96</guid>
		<description><![CDATA[This is a basic strategy to download and split the file into chunks. I am using this to parse huge XML feeds.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=96&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a basic strategy to download and split the file into chunks. I am using this to parse huge XML feeds.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=96&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/06/19/download-and-split-file-in-php-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Info How to bypass WPA (Windows Activation) on Windows XP</title>
		<link>http://pinoyphpdev.wordpress.com/2009/04/02/info-how-to-bypass-wpa-windows-activation-on-windows-xp/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/04/02/info-how-to-bypass-wpa-windows-activation-on-windows-xp/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 06:33:10 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Activation]]></category>
		<category><![CDATA[WindowsXP]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=91</guid>
		<description><![CDATA[Info How to bypass WPA (Windows Activation) on Windows XP How to bypass WPA (Windows Activation) on Windows XP Tested on Windows XP Professional SP2 and Windows Server 2003 R2. First, click &#8220;Run&#8230;&#8221; on your start menu, type &#8220;regedit&#8221; and press enter. The Registry Editor opens up, and you are presented with a long list [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=91&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Info How to bypass WPA (Windows Activation) on Windows XP</strong><br />
How to bypass WPA (Windows Activation) on Windows XP<br />
Tested on Windows XP Professional SP2 and Windows Server 2003 R2.</p>
<p>First, click &#8220;Run&#8230;&#8221; on your start menu, type &#8220;regedit&#8221; and press enter.<br />
The Registry Editor opens up, and you are presented with a long list of keys on the left.<br />
Browse through the list to <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents.</strong><br />
(If you can&#8217;t find this key, you&#8217;re screwed!)<br />
On the right, you should see a stringz value named OOBETimer.<br />
This is the activation stuff. If you change it, Windows will change it back within a few seconds.<br />
Whatever its value is, change it to FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD.<br />
(At first I thought this was different for each machine/serial number, but it&#8217;s always the same if windows is activated&#8230;LOL)<br />
After you&#8217;ve changed it, right-click WPAEvents and choose &#8220;Permissions&#8230;&#8221;<br />
A little window opens up with a list of user names. Click SYSTEM, and in the list below (&#8220;Permissions for SYSTEM&#8221;) check every box under &#8220;Deny&#8221;. Click OK to own windows. You don&#8217;t even have to reboot lol.<br />
If you&#8217;re too slow windows might change it back, so just hit F5 to refresh and make sure it got saved.<br />
If not, just try again. Microsoft owns for making it so easy to hack their software.<br />
So, just keep on enjoying an activated version of windows. swapnil_009 over and out!</p>
<p>The problem most of you are probably having is when you get to the &#8220;Permissions&#8221; section, so i expand on this tricky area.<br />
Under &#8220;Permissions&#8230;&#8221; for WPAEvents, Go into the Advanced settings.</p>
<p>UNCHECK &#8220;Inhereit from parent the permission entries that apply to child objects. Include these with entries explicitly defined here&#8221;</p>
<p>When prompted what course of action to take from here, click &#8220;COPY&#8221;</p>
<p>From there, Highlight the SYSTEM line, and click edit.</p>
<p>Deny all options, apply, and run a free copy of windows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=91&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/04/02/info-how-to-bypass-wpa-windows-activation-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide email address from google bots and crawlers</title>
		<link>http://pinoyphpdev.wordpress.com/2009/03/30/hide-email-address-from-google-bots-and-crawlers/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/03/30/hide-email-address-from-google-bots-and-crawlers/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 04:03:35 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[crawler]]></category>
		<category><![CDATA[google bot]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=74</guid>
		<description><![CDATA[class eMailClass{ function jEnc($x,$y){ $p = &#8220;&#8221;; for ($i = 0; $i &#60; strlen($x); $i++){ $p = $p . Chr((Ord($x{$i})-32) % 240 + $y + 32); } return urlencode($p); } function emailEncrypt($email2enc, $hr=&#34;Send Email&#34;){ //$e is for email $hr is the text link $offset = mt_rand(1,10); $doff = 32 + $offset; if (empty($hr)) { $hr [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=74&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>class eMailClass{</p>
<p>  function jEnc($x,$y){<br />
    $p = &#8220;&#8221;;</p>
<p>    for ($i = 0; $i &lt; strlen($x); $i++){<br />
      $p = $p . Chr((Ord($x{$i})-32) % 240 + $y + 32);<br />
    }<br />
    return urlencode($p);<br />
  }</p>
<p>  function emailEncrypt($email2enc, $hr=&quot;Send Email&quot;){ //$e is for email $hr is the text link<br />
    $offset = mt_rand(1,10);<br />
    $doff = 32 + $offset;<br />
    if (empty($hr)) {<br />
      $hr = $email2enc;<br />
    }<br />
    $link = &quot;<a>$hr</a>&#8220;;<br />
    $j = &#8220;&#8221;;<br />
    $j = $j . &#8220;\r\n&#8221;;<br />
    $j = $j . &#8220;var e = unescape(\&#8221;" . $this-&gt;jEnc($link,$offset) . &#8220;\&#8221;);\r\n&#8221;;<br />
    $j = $j . &#8220;var i,p=&#8221;;for(i=0;i&lt;e.length;i++){p+=String.fromCharCode(((e.charCodeAt(i)-&quot; . $doff . &quot;)%240)+32);}\r\n&quot;;<br />
    $j = $j . &quot;document.write(p);\r\n&quot;;<br />
    $j = $j . &quot;&#8221;;<br />
    // for script disabled script<br />
    $email2enc = explode(&#8220;@&#8221;, $email2enc);<br />
    $j = $j . &#8220;&#8221; . $email2enc[0] . &#8221; <em>-a<!-- " . mt_rand() . " -->t-</em> &#8220;;<br />
    $f = explode(&#8220;.&#8221;, $email2enc[1]);<br />
    $j = $j . implode(&#8221; <em>d<!-- " . mt_rand() . " -->ot</em> &#8220;, $f);<br />
    $j = $j . &#8220;&#8221;;<br />
    return $j;<br />
  }<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=74&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/03/30/hide-email-address-from-google-bots-and-crawlers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic Linux Commands</title>
		<link>http://pinoyphpdev.wordpress.com/2009/03/27/basic-linux-commands/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/03/27/basic-linux-commands/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 03:51:20 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=70</guid>
		<description><![CDATA[mkdir &#8211; make directories Usage mkdir [OPTION] DIRECTORY Options Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, mode=MODE  set permission mode (as in chmod), not rwxrwxrwx &#8211; umask -p, parents  no error if existing, make parent directories as needed -v, verbose  print [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=70&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>mkdir &#8211; make directories</strong></p>
<p>Usage</p>
<p>mkdir [OPTION] DIRECTORY</p>
<p>Options</p>
<p>Create the DIRECTORY(ies), if they do not already exist.</p>
<p>Mandatory arguments to long options are mandatory for short options too.</p>
<p>-m, mode=MODE  set permission mode (as in chmod), not rwxrwxrwx &#8211; umask</p>
<p>-p, parents  no error if existing, make parent directories as needed</p>
<p>-v, verbose  print a message for each created directory</p>
<p>-help display this help and exit</p>
<p>-version output version information and exit</p>
<p><strong>cd &#8211; change directories</strong></p>
<p>Use cd to change directories. Type cd followed by the name of a directory to access that directory.Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below.</p>
<p><strong>mv- change the name of a directory</strong></p>
<p>Type mv followed by the current name of a directory and the new name of the directory.</p>
<p>Ex: mv testdir newnamedir</p>
<p>pwd &#8211; print working directory</p>
<p>will show you the full path to the directory you are currently in. This is very handy to use, especially when performing some of the other commands on this page</p>
<p><strong> rmdir &#8211; Remove an existing directory</strong></p>
<p>rm -r</p>
<p>Removes directories and files within the directories recursively.</p>
<p><strong>chown &#8211; change file owner and group</strong></p>
<p>Usage</p>
<p>chown [OPTION] OWNER[:[GROUP]] FILE</p>
<p>chown [OPTION] :GROUP FILE</p>
<p>chown [OPTION] &#8211;reference=RFILE FILE</p>
<p>Options</p>
<p>Change the owner and/or group of each FILE to OWNER and/or GROUP. With &#8211;reference, change the owner and group of each FILE to those of RFILE.</p>
<p>-c, changes like verbose but report only when a change is made</p>
<p>-dereference affect the referent of each symbolic link, rather than the symbolic link itself</p>
<p>-h, no-dereference affect each symbolic link instead of any referenced file (useful only on systems that can         change the ownership of a symlink)</p>
<p>-from=CURRENT_OWNER:CURRENT_GROUP</p>
<p>change the owner and/or group of each file only if its current owner and/or group match those specified here.  Either  may  be  omitted,  in which case a match is not required for the omitted attribute.</p>
<p>-no-preserve-root do not treat `/&#8217; specially (the default)</p>
<p>-preserve-root fail to operate recursively on `/&#8217;</p>
<p>-f, -silent, -quiet  suppress most error messages</p>
<p>-reference=RFILE use RFILE&#8217;s owner and group rather than the specifying OWNER:GROUP values</p>
<p>-R, -recursive operate on files and directories recursively</p>
<p>-v, -verbose output a diagnostic for every file processed</p>
<p>The  following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one  takes effect.</p>
<p>-H     if a command line argument is a symbolic link to a directory, traverse it</p>
<p>-L     traverse every symbolic link to a directory encountered</p>
<p>-P     do not traverse any symbolic links (default)</p>
<p><strong>chmod &#8211; change file access permissions</strong></p>
<p>Usage</p>
<p>chmod [-r] permissions filenames</p>
<p>r  Change the permission on files that are in the subdirectories of the directory that you are currently in.        permission  Specifies the rights that are being granted. Below is the different rights that you can grant in an alpha  numeric format.filenames  File or directory that you are associating the rights with Permissions</p>
<p>u &#8211; User who owns the file.</p>
<p>g &#8211; Group that owns the file.</p>
<p>o &#8211; Other.</p>
<p>a &#8211; All.</p>
<p>r &#8211; Read the file.</p>
<p>w &#8211; Write or edit the file.</p>
<p>x &#8211; Execute or run the file as a program.</p>
<p>Numeric Permissions:</p>
<p>CHMOD can also to attributed by using Numeric Permissions:</p>
<p>400 read by owner</p>
<p>040 read by group</p>
<p>004 read by anybody (other)</p>
<p>200 write by owner</p>
<p>020 write by group</p>
<p>002 write by anybody</p>
<p>100 execute by owner</p>
<p>010 execute by group</p>
<p>001 execute by anybody</p>
<p><strong>ls &#8211; Short listing of directory contents</strong></p>
<p>-a        list hidden files</p>
<p>-d        list the name of the current directory</p>
<p>-F        show directories with a trailing &#8216;/&#8217;</p>
<p>executable files with a trailing &#8216;*&#8217;</p>
<p>-g        show group ownership of file in long listing</p>
<p>-i        print the inode number of each file</p>
<p>-l        long listing giving details about files  and directories</p>
<p>-R        list all subdirectories encountered</p>
<p>-t        sort by time modified instead of name</p>
<p><strong>cp &#8211; Copy files</strong></p>
<p>cp  myfile yourfile</p>
<p>Copy the files &#8220;myfile&#8221; to the file &#8220;yourfile&#8221; in the current working directory. This command will create the file &#8220;yourfile&#8221; if it doesn&#8217;t exist. It will normally overwrite it without warning if it exists.</p>
<p>cp -i myfile yourfile</p>
<p>With the &#8220;-i&#8221; option, if the file &#8220;yourfile&#8221; exists, you will be prompted before it is overwritten.</p>
<p>cp -i /data/myfile</p>
<p>Copy the file &#8220;/data/myfile&#8221; to the current working directory and name it &#8220;myfile&#8221;. Prompt before overwriting the  file.</p>
<p>cp -dpr srcdir destdir</p>
<p>Copy all files from the directory &#8220;srcdir&#8221; to the directory &#8220;destdir&#8221; preserving links (-poption), file attributes (-p option), and copy recursively (-r option). With these options, a directory and all it contents can be copied to another dir</p>
<p><strong>ln &#8211; Creates a symbolic link to a file.</strong></p>
<p>ln -s test symlink</p>
<p>Creates a symbolic link named symlink that points to the file test Typing &#8220;ls -i test symlink&#8221; will show the two files are different with different inodes. Typing &#8220;ls -l test symlink&#8221; will show that symlink points to the file test.</p>
<p><strong>locate &#8211; A fast database driven file locator.</strong></p>
<p>locate -u</p>
<p>This command builds the slocate database. It will take several minutes to complete this command.This command must be used before searching for files, however cron runs this command periodically  on most systems.locate whereis Lists all files whose names contain the string &#8220;whereis&#8221;. directory.</p>
<p>more &#8211; Allows file contents or piped output to be sent to the screen one page at a time</p>
<p><strong>less &#8211; Opposite of the more command</strong></p>
<p><strong>cat &#8211; Sends file contents to standard output. </strong>This is a way to list the contents of short files to the screen. It works well with piping.</p>
<p><strong>whereis &#8211; Report all known instances of a command</strong><br />
wc &#8211; Print byte, word, and line counts</p>
<p><strong>bg</strong></p>
<p>bg jobs Places the current job (or, by using the alternative form, the specified jobs) in the background, suspending its execution so that a new user prompt appears immediately. Use the jobs command to discover the identities of background jobs.</p>
<p><strong>cal month year -</strong> Prints a calendar for the specified month of the specified year.</p>
<p><strong>cat files &#8211; </strong>Prints the contents of the specified files.</p>
<p><strong>clear -</strong> Clears the terminal screen.</p>
<p><strong>cmp file1 file2 </strong>- Compares two files, reporting all discrepancies. Similar to the diff command, though the output format differs.</p>
<p><strong>diff file1 file2 </strong>- Compares two files, reporting all discrepancies. Similar to the cmp command, though the output format differs.</p>
<p><strong>dmesg </strong>- Prints the messages resulting from the most recent system boot.</p>
<p><strong>fg</strong></p>
<p><strong>fg jobs</strong> &#8211; Brings the current job (or the specified jobs) to the foreground.</p>
<p><strong>file files</strong> &#8211; Determines and prints a description of the type of each specified file.</p>
<p><strong>find path</strong> -name pattern -print</p>
<p>Searches the specified path for files with names matching the specified pattern (usually enclosed in single quotes) and prints their names. The find command has many other arguments and functions; see the online documentation.</p>
<p><strong>finger users </strong>- Prints descriptions of the specified users.</p>
<p><strong>free </strong> &#8211; Displays the amount of used and free system memory.</p>
<p>ftp hostname</p>
<p>Opens an FTP connection to the specified host, allowing files to be transferred. The FTP program provides subcommands for accomplishing file transfers; see the online documentation.<br />
<strong><br />
head files </strong>- Prints the first several lines of each specified file.</p>
<p><strong>ispell files</strong> &#8211; Checks the spelling of the contents of the specified files.</p>
<p><strong>kill process_ids</strong></p>
<p>kill &#8211; signal process_ids</p>
<p>kill -l</p>
<p>Kills the specified processes, sends the specified processes the specified signal (given as a number or name), or prints a list of available signals.</p>
<p>killall program</p>
<p>killall &#8211; signal program</p>
<p>Kills all processes that are instances of the specified program or sends the specified signal to all processes that are instances of the specified program.</p>
<p><strong>mail &#8211; </strong>Launches a simple mail client that permits sending and receiving email messages.</p>
<p><strong>man title</strong></p>
<p><strong>man section title</strong> &#8211; Prints the specified man page.</p>
<p><strong>ping host</strong> &#8211; Sends an echo request via TCP/IP to the specified host. A response confirms that the host is operational.</p>
<p><strong>reboot </strong>- Reboots the system (requires root privileges).</p>
<p><strong>shutdown </strong>minutes</p>
<p>shutdown -r minutes</p>
<p>Shuts down the system after the specified number of minutes elapses (requires root privileges). The -r option causes the system to be rebooted once it has shut down.</p>
<p><strong>sleep time</strong> &#8211; Causes the command interpreter to pause for the specified number of seconds.</p>
<p><strong>sort files</strong> &#8211; Sorts the specified files. The command has many useful arguments; see the online documentation.</p>
<p><strong>split file</strong> &#8211; Splits a file into several smaller files. The command has many arguments; see the online documentation</p>
<p><strong>sync </strong>- Completes all pending input/output operations (requires root privileges).</p>
<p><strong>telnet host </strong>- Opens a login session on the specified host.</p>
<p><strong>top </strong>- Prints a display of system processes that&#8217;s continually updated until the user presses the q key.<br />
<strong><br />
traceroute host</strong> &#8211; Uses echo requests to determine and print a network path to the host.</p>
<p><strong>uptime </strong>- Prints the system uptime.</p>
<p><strong>w </strong>- Prints the current system users.</p>
<p><strong>wall </strong>- Prints a message to each user except those who&#8217;ve disabled message reception. Type Ctrl-D to end the message.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=70&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/03/27/basic-linux-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache server response codes</title>
		<link>http://pinoyphpdev.wordpress.com/2009/03/27/apache-server-response-codes/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/03/27/apache-server-response-codes/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 03:29:29 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[HTTP]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=68</guid>
		<description><![CDATA[100-199 Silent Response Codes that signify that a request has been received and is currently being processed. 100 The request has been completed and the rest of the process can continue. 101 The user&#8217;s request to switch protocols (like from FTP to HTTP) was accepted. 200-299 Silent codes that confirm that requests have completed successfully. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=68&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>100-199 </strong> Silent Response Codes that signify that a request has been received and is currently being processed.</p>
<p><strong>100 </strong> The request has been completed and the rest of the process can continue.</p>
<p><strong>101 </strong> The user&#8217;s request to switch protocols (like from FTP to HTTP) was accepted.</p>
<p><strong>200-299 </strong>Silent codes that confirm that requests have completed successfully.</p>
<p><strong>200 </strong> Ok — the file which the client requested is available for transfer. This is the response code you want to see all of your users receiving.</p>
<p><strong>201 </strong> When new pages are created by posted form data or by a CGI process, this is confirmation that it worked.</p>
<p><strong>202 </strong> The client&#8217;s request was accepted, though not yet processed.</p>
<p><strong>203 </strong> The information contained in the entity header is not from the original site, but from a third party server.</p>
<p><strong>204 </strong> If you click a link which has no target URL, this response is elicited by the server. It&#8217;s silent and doesn&#8217;t warn the user about anything.</p>
<p><strong>205 </strong> This allows the server to reset any content returned by a CGI.</p>
<p><strong>206</strong> Partial content — the requested file wasn&#8217;t downloaded entirely. This is returned when the user presses the stop button before a page is loaded, for example.</p>
<p><strong>300-399</strong> A redirection is occurring from the original request.</p>
<p><strong>300 </strong> The requested address refers to more than one file. Depending on how the server is configured, you get an error or a choice of which page you want.</p>
<p><strong>301 </strong> Moved Permanently — if the server is set up properly it will automatically redirect the reader to the new location of the file.</p>
<p><strong>302 </strong> Found — page has been moved temporarily, and the new URL is available. You should be sent there by the server.</p>
<p><strong>303 </strong> This is a &#8220;see other&#8221; SRC. Data is somewhere else and the GET method is used to retrieve it.</p>
<p><strong>304 </strong> Not Modified — if the request header includes an &#8216;if modified since&#8217; parameter, this code will be returned if the file has not changed since that date. Search engine robots may generate a lot of these.</p>
<p><strong>400-499</strong> Request is incomplete for some reason.</p>
<p><strong>400 </strong> Bad Request — there is a syntax error in the request, and it is denied.</p>
<p><strong>401 </strong> The request header did not contain the necessary authentication codes, and the client is denied access.</p>
<p><strong>402 </strong> Payment is required. This code is not yet in operation.</p>
<p><strong>403 </strong> Forbidden — the client is not allowed to see a certain file. This is also returned at times when the server doesn&#8217;t want any more visitors.</p>
<p><strong>404 </strong> Document not found — the requested file was not found on the server. Possibly because it was deleted, or never existed before. Often caused by misspellings of URLs.</p>
<p><strong>405 </strong>The method you are using to access the file is not allowed.</p>
<p><strong>406 </strong> The requested file exists but cannot be used as the client system doesn&#8217;t understand the format the file is configured for.</p>
<p><strong>407 </strong> The request must be authorised before it can take place.</p>
<p><strong>408 </strong> Request Timeout — the server took longer than its allowed time to process the request. Often caused by heavy net traffic.</p>
<p><strong>409 </strong> Too many concurrent requests for a single file.</p>
<p><strong>410 </strong> The file used to be in this position, but is there no longer.</p>
<p><strong>411 </strong> The request is missing its Content-Length header.</p>
<p><strong>412 </strong> A certain configuration is required for this file to be delivered, but the client has not set this up.</p>
<p><strong>413 </strong> The requested file was too big to process.</p>
<p><strong>414 </strong> The address you entered was overly long for the server.</p>
<p><strong>415 </strong> The filetype of the request is unsupported.</p>
<p><strong>500-599 </strong> Errors have occurred in the server itself.</p>
<p><strong>500 </strong> Internal Server Error — nasty response that is usually caused by a problem in your Perl code when a CGI program is run.</p>
<p><strong>501 </strong> The request cannot be carried out by the server.</p>
<p><strong>502 </strong> Bad Gateway — the server you&#8217;re trying to reach is sending back errors.</p>
<p><strong>503 </strong> Temporarily Unavailable — the service or file that is being requested is not currently available.</p>
<p><strong>504 </strong> The gateway has timed out. Like the 408 timeout error, but this one occurs at the gateway of the server.</p>
<p><strong>505 </strong> The HTTP protocol you are asking for is not supported.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=68&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/03/27/apache-server-response-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>.htaccess Tutorial &#8211; Error Messages</title>
		<link>http://pinoyphpdev.wordpress.com/2009/03/26/htaccess-tutorial-error-messages/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/03/26/htaccess-tutorial-error-messages/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 08:14:16 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=66</guid>
		<description><![CDATA[.htaccess Tutorial &#8211; Error Messages In cases where the web server can not fulfill a request, it will output a generic error message. You can customize these using .htaccess. If you are hosted with us, the control panel can do this for you. 1. Custom Error Messages The ErrorDocument is used for this purpose, followed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=66&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:verdana,Arial,Helvetica;"> <strong>.htaccess Tutorial &#8211; Error Messages</strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">In cases where the web server can not fulfill a request, it will output a generic error message. </span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">You can customize these using .htaccess. If you are hosted with us, the <a href="http://www.clockwatchers.com/cp_error_pages.html">control panel</a> can do this for you.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">1. Custom Error Messages</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">The ErrorDocument is used for this purpose, followed by a 3 digit errorcode and the action to perform.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> ErrorDocument 404 /<span style="color:red;">notfound.html</span> </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">This example will display web page notfound.html in cases where the requested document is not found.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">If you remove a web page from your site and someone tries to view it, they would see notfound.html instead.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> ErrorDocument 404 http://<span style="color:red;">www.other_site.com/notfound.html</span> </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">This redirects such requests to the URL you specify.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">You can also tell .htaccess to display a text message.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> ErrorDocument 404 &#8220;<span style="color:red;">No such document here</span> </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">Here, the text &#8216;No such document here&#8217; is shown.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Replace the action parts shown in red in the above examples to customize the web server behavior.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">2. Other Error Numbers</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Other comonly used 3 digit codes are listed below.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong>401</strong> : Authorization Required</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Someones tried to access a password protected area but did not provide correct user/pass info.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong>403</strong> : Forbidden</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">This person is blocked from requesting the document.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong>500</strong> : Internal Server Error</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Usually, this means the cgi script being used crashed.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=66&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/03/26/htaccess-tutorial-error-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>.htaccess Tutorial &#8211; Directory Listing</title>
		<link>http://pinoyphpdev.wordpress.com/2009/03/26/htaccess-tutorial-directory-listing/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/03/26/htaccess-tutorial-directory-listing/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 07:51:20 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=59</guid>
		<description><![CDATA[.htaccess Tutorial &#8211; Directory Listing When a web browser is pointed to a directory on your web site which does not have an index.html file in it, the files in that directory can be listed on a web page. 1. Enable/Disable Directory Listing To have the web server produce a list of files for such [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=59&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:verdana,Arial,Helvetica;"> <strong>.htaccess Tutorial &#8211; Directory Listing</strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">When a web browser is pointed to a directory on your web site which does not have an index.html file in it, the files in that directory can be listed on a web page.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">1. Enable/Disable Directory Listing</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">To have the web server produce a list of files for such directories, use the below line in your .htaccess.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> Options +Indexes </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">To have an error (403) returned instead, use this line.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> Options -Indexes </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">2. Listing Style</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Either a basic list of files can be shown, or a &#8216;fancy&#8217; list including icons, file size, modification date and more.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> IndexOptions +FancyIndexing </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">Add this to your .htaccess file to use the &#8216;fancy&#8217; style. </span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> IndexOptions -FancyIndexing </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">Use the above line if you prefer a more basic file list.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">3. Ignore Files</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Let&#8217;s say you have a directory with .jpg, .gif and .png image files. You only want the .png files to show in the directory listings. Add this line to your .htaccess. </span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> IndexIgnore *.gif *.jpg </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">The web server now ignores the .gif and .jpg files.</span></p>
<p><span style="font-family:verdana,Arial,Helvetica;"><strong><span style="text-decoration:underline;">4. Modify Index File</span></strong></span></p>
<p><span style="font-family:verdana,Arial,Helvetica;">Maybe you don&#8217;t want a list of the files, you want a specific file to be shown instead. You could upload an index.html file in this directory. There is another way.</span></p>
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
<tbody>
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="2" width="460">
<tbody>
<tr bgcolor="#ffffff">
<td><span style="color:green;"> DirectoryIndex myfile.html </span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family:verdana,Arial,Helvetica;">Instead of listing the files, web page myfile.html will now be shown for this directory and its subdirectories.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=59&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/03/26/htaccess-tutorial-directory-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
		<item>
		<title>Crawl websites like Google Bot</title>
		<link>http://pinoyphpdev.wordpress.com/2009/03/25/crawl-websites-like-google-bot/</link>
		<comments>http://pinoyphpdev.wordpress.com/2009/03/25/crawl-websites-like-google-bot/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 08:17:28 +0000</pubDate>
		<dc:creator>pinoyphpdev</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[crawler]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google bot]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">http://dev.pasukan.com/?p=45</guid>
		<description><![CDATA[Want to crawl websites like google bot or any other robot? Well, here it is You might want to store google bot IPs after reading this.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=45&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Want to crawl websites like google bot or any other robot? Well, here it is</p>
<p><pre class="brush: php;">
&lt;?php
$url=&quot;http://dev.pasukan.com&quot;;

$curl=curl_init();
curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot.html)');
curl_setopt($curl, CURLOPT_URL,$url);
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT,2);
$buffer = curl_exec($curl);
$html = @mb_convert_encoding($buffer, 'HTML-ENTITIES', 'utf-8');
curl_close($curl);
if (empty($html)){
    print &quot;Nothing to display&quot;;
}
else{
    print $html;
}

</pre></p>
<p>You might want to store google bot IPs after reading this. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pinoyphpdev.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pinoyphpdev.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pinoyphpdev.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pinoyphpdev.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pinoyphpdev.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pinoyphpdev.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pinoyphpdev.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pinoyphpdev.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pinoyphpdev.wordpress.com&amp;blog=8271831&amp;post=45&amp;subd=pinoyphpdev&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pinoyphpdev.wordpress.com/2009/03/25/crawl-websites-like-google-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c29c80b0e39d4411299d85c3d03a23fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pinoyphpdev</media:title>
		</media:content>
	</item>
	</channel>
</rss>
