<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://imanpage.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Iman&#039;s Page</title>
 <link>http://imanpage.com</link>
 <description>Iman&#039;s programming, madness and his daily life playground.</description>
 <language>en</language>
<item>
 <title>Symfony2 and SQLite3 or PDO_SQLite extension error</title>
 <link>http://imanpage.com/code/symfony2-and-sqlite3-or-pdo_sqlite-extension-error</link>
 <description>&lt;p&gt;If you are getting &amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;You need to enable either the SQLite3 or PDO_SQLite extension for the profiler to run properly&lt;/blockquote&gt;
&lt;p&gt;
To resolved it install the php5-sqlite
&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; php5-sqlite&lt;br /&gt;
&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#restart the apache&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;init.d&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;apache2 restart&lt;/div&gt;&lt;/div&gt;
</description>
 <comments>http://imanpage.com/code/symfony2-and-sqlite3-or-pdo_sqlite-extension-error#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <category domain="http://imanpage.com/code/symfony">Symfony</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Sun, 18 Sep 2011 14:56:04 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">45 at http://imanpage.com</guid>
</item>
<item>
 <title>Installing Nodejs, NPM and Google V8 on UBUNTU</title>
 <link>http://imanpage.com/code/installing-nodejs-npm-and-google-v8-ubuntu</link>
 <description>A) Install the essential compilers, packages and Google V8

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; update&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; build-essential curl openssl libv8-2.0.3&lt;/div&gt;&lt;/div&gt;

B) Download and install the Nodejs from source
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;wget&lt;/span&gt; http:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;nodejs.org&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dist&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;node-v0.4.11.tar.gz&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;gunzip&lt;/span&gt; node-v0.4.11.tar.gz&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-xf&lt;/span&gt; node-v0.4.11.tar&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; &amp;nbsp;node-v0.4.11&lt;br /&gt;
.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;configure&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

C) Installing the NPM
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;curl http:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;npmjs.org&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;install.sh &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sh&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

Here is the lazy script to get things installed smoothly in your UBUNTU machine.&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/installing-nodejs-npm-and-google-v8-ubuntu&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/installing-nodejs-npm-and-google-v8-ubuntu#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/bash">Bash</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Sun, 18 Sep 2011 13:45:14 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">44 at http://imanpage.com</guid>
</item>
<item>
 <title>PHP custom debugging functions</title>
 <link>http://imanpage.com/code/php-custom-debugging-functions</link>
 <description>&lt;p&gt;Here is another debugging helper for Symfony, CodeIgniter, Kohana and Zend frameworks or your applications.  Normally you would use var_dump() or print _r() for debugging but dumping  the data without xdebug always a pain. &lt;/p&gt;

&lt;p&gt;I use these custom functions depending on type of data whether an array or a class to debug my code which makes it more friendly and human-readable.&lt;/p&gt;

&lt;br /&gt;

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;?php&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; my_print_r &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;, &lt;span style=&quot;color: #007800;&quot;&gt;$bool&lt;/span&gt; = TRUE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; pre&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt; print_r&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;, &lt;span style=&quot;color: #007800;&quot;&gt;$bool&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;, FALSE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; my_var_dump &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; pre&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;var_dump&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; my_debug &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;is_object&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pre&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;Object: [&#039;&lt;/span&gt;.get_class&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;. &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;] =&amp;gt; &#039;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;. print_r&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;array_keys&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;get_object_vars&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;, TRUE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;, FALSE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; my_debug_in &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;is_object&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pre&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;Object: [&#039;&lt;/span&gt; .get_class&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039; ] =&amp;gt; Array&#039;&lt;/span&gt;, FALSE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;get_object_vars&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my_debug&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;is_array&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; my_print_r&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; my_class&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$name&lt;/span&gt; = NULL&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #007800;&quot;&gt;$class&lt;/span&gt; = new ReflectionClass&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; my_print_r&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;Reflection::&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$class&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; pre&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;, &lt;span style=&quot;color: #007800;&quot;&gt;$bool&lt;/span&gt; = TRUE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;!&lt;/span&gt;ini_get&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;xdebug.default_enable&#039;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$bool&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;pre&amp;gt;&amp;quot;&lt;/span&gt;.&lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt; .&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;/pre&amp;gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$param&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
?&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <comments>http://imanpage.com/code/php-custom-debugging-functions#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/doctrine">Doctrine</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <category domain="http://imanpage.com/code/php5">PHP5</category>
 <category domain="http://imanpage.com/code/symfony">Symfony</category>
 <pubDate>Mon, 12 Jul 2010 15:40:45 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">42 at http://imanpage.com</guid>
</item>
<item>
 <title>Symfony and sfDoctrineGuard missing installation point</title>
 <link>http://imanpage.com/code/symfony-and-sfdoctrineguard-missing-installation-point</link>
 <description>&lt;p&gt; If you are getting the 500 error (Call to undefined method myUser::isAnonymous.) after installing the sfGuardDoctrine plugin i.e&lt;/p&gt;


&lt;p&gt;&lt;img width=&quot;600&quot; height=&quot;211&quot; src=&quot;/sites/default/files/symfony_500_0.png&quot; alt=&quot;Call to undefined method myUser::isAnonymous.&quot; /&gt;&lt;/p&gt;

&lt;p&gt;
 Add these lines in your apps/app name/config/factories.yml to make to pluging to work.
&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;all:&lt;br /&gt;
&amp;nbsp; user:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;class: &amp;nbsp;sfGuardSecurityUser&lt;/div&gt;&lt;/div&gt;

&lt;br /&gt;</description>
 <comments>http://imanpage.com/code/symfony-and-sfdoctrineguard-missing-installation-point#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/doctrine">Doctrine</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <category domain="http://imanpage.com/code/symfony">Symfony</category>
 <pubDate>Thu, 08 Jul 2010 13:39:01 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">41 at http://imanpage.com</guid>
</item>
<item>
 <title>Using th native MySQL ENUM type in Symfony 1.4 and Doctrine</title>
 <link>http://imanpage.com/code/using-th-native-mysql-enum-type-symfony-14-and-doctrine</link>
 <description>To use the native MySQL ENUM type in Symfony and Doctrine you will have to update your &quot;project/config/databases.yml&quot; and add the &quot;use_native_enum&quot; directive under &quot;attributes&quot; i.e:
&lt;br /&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; attributes: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;use_native_enum: &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;use_dql_callbacks: &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default_table_collate: utf8_general_ci&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default_table_charset: utf8&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;
Full Version
&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/using-th-native-mysql-enum-type-symfony-14-and-doctrine&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/using-th-native-mysql-enum-type-symfony-14-and-doctrine#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/doctrine">Doctrine</category>
 <category domain="http://imanpage.com/code/mysql">MySQL</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <category domain="http://imanpage.com/code/symfony">Symfony</category>
 <pubDate>Mon, 21 Jun 2010 17:18:14 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">40 at http://imanpage.com</guid>
</item>
<item>
 <title>Daryush Shokof the director of Iran Zendan gone missing in Germany</title>
 <link>http://imanpage.com/code/daryush-shokof-director-iran-zendan-gone-missing-germany</link>
 <description>&lt;p style=&quot;text-align: left; &quot;&gt;Iranian director Daryush Shokof has disappeared after his latest film &amp;ldquo;Iran Zendan&amp;rdquo; was premiered three weeks ago in the cinema &amp;ldquo;Babylon&amp;rdquo; in Berlin.  The Iran Zendan draws a very true picture about inhumanity of torture and rape in the prisons of the Islamic Republic in Iran.&lt;/p&gt;&lt;p style=&quot;text-align: left; &quot;&gt;Daryush lives in Berlin for decades and headed to Paris last week. He had planned to board the train from Cologne to Paris and since then he is missing! The last contact with his friends and family was made at the Cologne railway station.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/daryush-shokof-director-iran-zendan-gone-missing-germany&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/daryush-shokof-director-iran-zendan-gone-missing-germany#comments</comments>
 <category domain="http://imanpage.com/blog/green-movement">Green Movement</category>
 <category domain="http://imanpage.com/blog/iran">Iran</category>
 <category domain="http://imanpage.com/blog/terrorist">terrorist</category>
 <pubDate>Sun, 30 May 2010 18:39:22 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">38 at http://imanpage.com</guid>
</item>
<item>
 <title>Iran and US hostage exchange</title>
 <link>http://imanpage.com/code/iran-and-us-hostage-exchange</link>
 <description>&lt;p style=&quot;text-align: left; &quot;&gt;Just a day after Iran and France exchanged hostage the Islamic Republic of Iran managed to force US releasing two of IRI spy&amp;rsquo;s held for a few years in Iraq. It does not take a rocket scientist to figure out that the release of Iranians in Iraq was an exchange with allowing the mothers of three arrested American hikers in Iran visiting their kids.&lt;/p&gt;&lt;p&gt;&lt;object width=&quot;640&quot; height=&quot;385&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/RZ8Fu_F3A_Q&amp;amp;hl=en_GB&amp;amp;fs=1&amp;amp;&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;&lt;embed src=&quot;http://www.youtube.com/v/RZ8Fu_F3A_Q&amp;amp;hl=en_GB&amp;amp;fs=1&amp;amp;&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;640&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/iran-and-us-hostage-exchange#comments</comments>
 <category domain="http://imanpage.com/blog/green-movement">Green Movement</category>
 <category domain="http://imanpage.com/blog/iran">Iran</category>
 <category domain="http://imanpage.com/blog/terrorist">terrorist</category>
 <pubDate>Fri, 21 May 2010 13:57:57 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">37 at http://imanpage.com</guid>
</item>
<item>
 <title>Iran and France hostage exchange and west deals with terrorist regimes!</title>
 <link>http://imanpage.com/code/iran-and-france-hostage-exchange-and-west-deals-terrorist-regimes</link>
 <description>&lt;p style=&quot;text-align: left; &quot;&gt;France freed the murderer of &lt;a target=&quot;_blank&quot; href=&quot;http://en.wikipedia.org/wiki/Shapour_Bakhtiar&quot;&gt;Dr. Shahpour Bakhtiar&lt;/a&gt; last Prime Minister of Iran under Shah who was an opponent of the Islamic Republic.  &lt;a target=&quot;_blank&quot; href=&quot;http://www.english.rfi.fr/france/20100519-vakili-rad-back-iran&quot;&gt;Ali Vakili Rad&lt;/a&gt;, which in 1991 imprisoned in France, was freed yesterday immediately after the release of a French teacher accused of spying &lt;a target=&quot;_blank&quot; href=&quot;http://en.wikipedia.org/wiki/Clotilde_Reiss&quot;&gt;Clotilde Reiss&lt;/a&gt; from Evin prison in Iran.   Vakili Rad flew to Tehran after release and was amazingly welcomed by Deputy Foreign Minister and a member of the Parliament National Security Commission of IRI as a national hero!&lt;/p&gt;&lt;p style=&quot;text-align: center; &quot;&gt;&lt;img alt=&quot;Bakhtiar Killer&quot; width=&quot;397&quot; height=&quot;595&quot; align=&quot;middle&quot; src=&quot;/sites/default/files/Khamenei_and_Bakhtiar_killer.jpg&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/iran-and-france-hostage-exchange-and-west-deals-terrorist-regimes&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/iran-and-france-hostage-exchange-and-west-deals-terrorist-regimes#comments</comments>
 <category domain="http://imanpage.com/blog/green-movement">Green Movement</category>
 <category domain="http://imanpage.com/blog/hostage">hostage</category>
 <category domain="http://imanpage.com/blog/iran">Iran</category>
 <category domain="http://imanpage.com/blog/terrorist">terrorist</category>
 <pubDate>Wed, 19 May 2010 13:53:34 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">36 at http://imanpage.com</guid>
</item>
<item>
 <title>Music worm</title>
 <link>http://imanpage.com/code/music-worm</link>
 <description>&lt;p&gt;I just couldn&#039;t stop listening to this song and thought of posting it in my blog :)&amp;nbsp;&lt;/p&gt;  &lt;p&gt;&lt;object width=&quot;480&quot; height=&quot;385&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/U7oSgBsdsIQ&amp;hl=en_GB&amp;fs=1&amp;&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/U7oSgBsdsIQ&amp;hl=en_GB&amp;fs=1&amp;&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/music-worm#comments</comments>
 <category domain="http://imanpage.com/blog/music">Music</category>
 <pubDate>Wed, 10 Mar 2010 17:14:48 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">34 at http://imanpage.com</guid>
</item>
<item>
 <title>40 Most Needed Drupal Modules </title>
 <link>http://imanpage.com/code/40-most-needed-drupal-modules</link>
 <description>&lt;p&gt;Here are my top 40 Drupal modules that seem to happen more often I am using them in my Drupal projects.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;1. addtoany&lt;br /&gt;&amp;nbsp;2. blocks404&lt;br /&gt;&amp;nbsp;3. boost&lt;br /&gt;&amp;nbsp;4. cacherouter&lt;br /&gt;&amp;nbsp;5. canonical_url&lt;br /&gt;&amp;nbsp;6. captcha&lt;br /&gt;&amp;nbsp;7. cck&lt;br /&gt;&amp;nbsp;8. custom_breadcrumbs&lt;br /&gt;&amp;nbsp;9. date&lt;br /&gt;10. diggthis&lt;br /&gt;11. filefield&lt;br /&gt;12. gravatar&lt;br /&gt;13. htmlpurifier&lt;br /&gt;14. image_caption&lt;br /&gt;15. image_fupload&lt;br /&gt;16. imageapi&lt;br /&gt;17. imagecache&lt;br /&gt;18. imagecache_profiles&lt;br /&gt;19. imagefield&lt;br /&gt;20. imagefield_crop&lt;br /&gt;21. imagefield_tokens&lt;br /&gt;22. imce&lt;br /&gt;23. imce_wysiwyg&lt;br /&gt;24. menu_breadcrumb&lt;br /&gt;25. montharchive&lt;br /&gt;26. nodewords&lt;br /&gt;27. page_title&lt;br /&gt;28. pathauto&lt;br /&gt;29. seo_checklist&lt;br /&gt;30. tagadelic&lt;br /&gt;31. taxonomy_breadcrumb&lt;br /&gt;32. taxonomy_manager&lt;br /&gt;33. taxonomy_menu&lt;br /&gt;34. taxonomy_vtn&lt;br /&gt;35. token&lt;br /&gt;36. twitter&lt;br /&gt;37. views&lt;br /&gt;38. workflow&lt;br /&gt;39. wysiwyg&lt;br /&gt;40. xmlsitemap&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/40-most-needed-drupal-modules#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/drupal">Drupal</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <pubDate>Tue, 23 Feb 2010 16:13:57 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">33 at http://imanpage.com</guid>
</item>
<item>
 <title>Neda Agha-Soltan the face of Iran&#039;s hero</title>
 <link>http://imanpage.com/code/neda-agha-soltan-face-irans-hero</link>
 <description>&lt;p&gt;&lt;strong&gt;Neda Agha-Soltan &lt;/strong&gt;has lost her life for freedom of my country Iran and has become a face of resistance and hero of our generation.  Neda was a victim’s of brutal regime and an example of the millions of other Iranians who are seeking for basic human right and nothing more.&lt;/p&gt;&lt;h3&gt;Bruz ft. Tiatsh &amp;amp; Jaz&#039; - I can&#039;t Breathe&lt;/h3&gt;&lt;p&gt;&lt;object height=&quot;340&quot; width=&quot;560&quot;&gt;&lt;param value=&quot;http://www.youtube.com/v/QgFvYU_mhqI&amp;amp;hl=en_GB&amp;amp;fs=1&amp;amp;&quot; name=&quot;movie&quot;&gt;&lt;param value=&quot;true&quot; name=&quot;allowFullScreen&quot;&gt;&lt;param value=&quot;always&quot; name=&quot;allowscriptaccess&quot;&gt;&lt;embed allowfullscreen=&quot;true&quot; allowscriptaccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; src=&quot;http://www.youtube.com/v/QgFvYU_mhqI&amp;amp;hl=en_GB&amp;amp;fs=1&amp;amp;&quot; height=&quot;340&quot; width=&quot;560&quot;&gt;&lt;/object&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/neda-agha-soltan-face-irans-hero&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/neda-agha-soltan-face-irans-hero#comments</comments>
 <category domain="http://imanpage.com/blog/green-movement">Green Movement</category>
 <category domain="http://imanpage.com/blog/iran">Iran</category>
 <category domain="http://imanpage.com/blog/neda">Neda</category>
 <category domain="http://imanpage.com/blog/solidarity">Solidarity</category>
 <pubDate>Wed, 10 Feb 2010 14:28:43 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">31 at http://imanpage.com</guid>
</item>
<item>
 <title>URL rewriting and add www to .htaccess for hosting multiple domain or multi sites</title>
 <link>http://imanpage.com/code/url-rewriting-and-add-www-htaccess-hosting-multiple-domain-or-multi-sites</link>
 <description>Adding the www to URL in .htaccess for hosting multiple domain or multisites and handle www issue for canonical URLs. 

&lt;br /&gt;

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##Adding the www&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;!&lt;/span&gt;^www\. &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;NC&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;$ &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;NC&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteRule ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;$ &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;http://www.%1/$1&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;L,&lt;span style=&quot;color: #007800;&quot;&gt;R&lt;/span&gt;=&lt;span style=&quot;color: #000000;&quot;&gt;301&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;br /&gt;

The other way around you can &lt;a href=&quot;http://www.imanpage.com/code/remove-www-and-rewrite-url-multi-sites-or-subdomains-htaccess&quot; &gt;removing the www&lt;/a&gt; from URL.

&lt;br /&gt;
&lt;br /&gt;</description>
 <comments>http://imanpage.com/code/url-rewriting-and-add-www-htaccess-hosting-multiple-domain-or-multi-sites#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/htaccess">.htaccess</category>
 <category domain="http://imanpage.com/code/apache">Apache</category>
 <category domain="http://imanpage.com/code/bash">Bash</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Mon, 08 Feb 2010 13:43:33 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">30 at http://imanpage.com</guid>
</item>
<item>
 <title>Remove www and rewrite URL for multi-sites or subdomains in .htaccess</title>
 <link>http://imanpage.com/code/remove-www-and-rewrite-url-multi-sites-or-subdomains-htaccess</link>
 <description>If you are running a Multisites or Subdomains sites this .htaccess RewriteRule code might come in handy specially for purpose of SEO. You can clean up your URL from http://www.yourdomain.com to http://yourdomain.com and remove the “www” with 301 redirect to non-www.

&lt;br /&gt;

&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;RewriteEngine on&lt;br /&gt;
RewriteCond &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_HOST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; ^www\.&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;.+&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;$ &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;NC&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
RewriteRule ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;.&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;$ http:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//%&lt;/span&gt;1&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;$1 &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;L,&lt;span style=&quot;color: #007800;&quot;&gt;R&lt;/span&gt;=&lt;span style=&quot;color: #000000;&quot;&gt;301&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;br /&gt;

If you want to add the &lt;a href=&quot;http://www.imanpage.com/code/url-rewriting-and-add-www-htaccess-hosting-multiple-domain-or-multi-sites&quot; &gt;www to URLs&lt;/a&gt; check this out. 

&lt;br /&gt;
&lt;br /&gt;</description>
 <comments>http://imanpage.com/code/remove-www-and-rewrite-url-multi-sites-or-subdomains-htaccess#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/htaccess">.htaccess</category>
 <category domain="http://imanpage.com/code/apache">Apache</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Fri, 05 Feb 2010 16:29:03 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">29 at http://imanpage.com</guid>
</item>
<item>
 <title>Charity Hack 2009</title>
 <link>http://imanpage.com/code/charity-hack-2009</link>
 <description>&lt;p&gt;I have been extremely busy lately and I have totally neglected my blog over the last few months and I thought I would make a quick post.&lt;/p&gt;&lt;p&gt;A few weeks ago I participated on Charity Hack 2009 hosted by PayPal and sponsored by JustGiving and MissionFish with the aim to build an app in 24 hours over the weekend and overall after all hacks we won the second prize.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://imanpage.com/code/charity-hack-2009&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://imanpage.com/code/charity-hack-2009#comments</comments>
 <category domain="http://imanpage.com/code/charity-hack-2009">Charity Hack 2009</category>
 <category domain="http://imanpage.com/code/justgiving">JustGiving</category>
 <category domain="http://imanpage.com/code/london">London</category>
 <category domain="http://imanpage.com/code/paypal">Paypal</category>
 <pubDate>Sun, 11 Oct 2009 21:16:37 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">28 at http://imanpage.com</guid>
</item>
<item>
 <title>Convert Linux/Unix timestamp to human readable format in PHP</title>
 <link>http://imanpage.com/code/convert-linuxunix-timestamp-human-readable-format-php</link>
 <description>&lt;p&gt;This functin will help to convert the Linux/Unix timestamp to human readable format:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;div class=&quot;bash geshifilter-bash&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; unix_timestamp_to_human &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #007800;&quot;&gt;$format&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;D d M Y - H:i:s&#039;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;empty&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;!&lt;/span&gt; is_numeric&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt; = &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$format&lt;/span&gt;, &lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$format&lt;/span&gt;, &lt;span style=&quot;color: #007800;&quot;&gt;$timestamp&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;$unix_time&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1251208071&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; unix_timestamp_to_human&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$unix_time&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;Return: Tue &lt;span style=&quot;color: #000000;&quot;&gt;25&lt;/span&gt; Aug &lt;span style=&quot;color: #000000;&quot;&gt;2009&lt;/span&gt; - &lt;span style=&quot;color: #000000;&quot;&gt;14&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;47&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;51&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</description>
 <comments>http://imanpage.com/code/convert-linuxunix-timestamp-human-readable-format-php#comments</comments>
 <category domain="http://imanpage.com/code/code">Code</category>
 <category domain="http://imanpage.com/code/date">Date</category>
 <category domain="http://imanpage.com/code/function">Function</category>
 <category domain="http://imanpage.com/code/human">Human</category>
 <category domain="http://imanpage.com/code/php">PHP</category>
 <category domain="http://imanpage.com/code/time">Time</category>
 <category domain="http://imanpage.com/code/timestamp">Timestamp</category>
 <category domain="http://imanpage.com/code/unix">Unix</category>
 <category domain="http://imanpage.com/code/linux">Linux</category>
 <pubDate>Tue, 25 Aug 2009 17:07:32 +0000</pubDate>
 <dc:creator>Iman</dc:creator>
 <guid isPermaLink="false">27 at http://imanpage.com</guid>
</item>
</channel>
</rss>


