<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Development Wall</title>
	<atom:link href="http://www.developmentwall.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developmentwall.com</link>
	<description>help for php, codeigniter, javascript, jquery, mysql, apache, ubuntu</description>
	<lastBuildDate>Sun, 03 Mar 2013 13:30:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to install Zend Framework in Ubuntu</title>
		<link>http://www.developmentwall.com/install-zend-framework-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-zend-framework-ubuntu</link>
		<comments>http://www.developmentwall.com/install-zend-framework-ubuntu/#comments</comments>
		<pubDate>Fri, 06 Jul 2012 18:09:50 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=584</guid>
		<description><![CDATA[Zend Framework  is one of the most powerful  framework for PHP, it has lots of built in component and its very useful to develop large scale complex web  application. I will show how to install Zend Application Framework on Ubuntu. I hope you have already installed php, apache in you Ubuntu box. Download the latest version [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/install-zend-framework-ubuntu/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=584" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Zend Framework  is one of the most powerful  framework for PHP, it has lots of built in component and its very useful to develop large scale complex web  application.</p>
<p>I will show how to install Zend Application Framework on Ubuntu. I hope you have already installed php, apache in you Ubuntu box.</p>
<ol>
<li>Download the latest version of Zend Framework from the zend  <a href="http://www.zend.com/community/downloads" target="_blank">site</a></li>
<li>Save the Framework source on your www directory and extract it. I have extracted it in /var/www/ directory</li>
</ol>
<p style="padding-left: 30px;"><a href="http://www.developmentwall.com/wp-content/uploads/2012/07/zend_unzip.png" rel="lightbox[584]" title="zend_unzip"><img class="alignnone  wp-image-585" title="zend_unzip" src="http://www.developmentwall.com/wp-content/uploads/2012/07/zend_unzip-300x141.png" alt="" width="300" height="141" /></a></p>
<p>         3.Now set the suitable permission to the directory. So type in the following commands to Shell</p>
<div class="my-site-command-box">
<p style="text-align: left; padding-left: 30px;"><strong> #sudo chmod -R 0755  /var/www/ZendFramework-1.11.12/</strong></p>
</div>
<p style="text-align: left; padding-left: 30px;">4. Now enable the Zend framework tool or the zf tool. zf is a command line tool to create project and perform others operation for zend application. To enable the zf tool, we have to create a symlink to the tool. Copy and run the command to your shell</p>
<p style="text-align: left; padding-left: 30px;"><a href="http://www.developmentwall.com/wp-content/uploads/2012/07/create_ln.png" rel="lightbox[584]" title="create_ln"><img class="alignnone size-medium wp-image-586" title="create_ln" src="http://www.developmentwall.com/wp-content/uploads/2012/07/create_ln-300x83.png" alt="" width="300" height="83" /></a></p>
<div class="my-site-command-box">
<p style="text-align: left;"><strong>        # ln -s /var/www/ZendFramework-1.11.1/bin/zf.sh  /usr/bin/zf</strong></p>
</div>
<p style="text-align: left; padding-left: 30px;">This will create a symlink to <strong>/usr/bin/</strong></p>
<p style="text-align: left; padding-left: 30px;">5. Next we will enable the Library path to the php.ini. So to do that we will open the file in a vim editor. So for that we will again go to the terminal and type the following,As we are using Ubuntu so php.ini will be in &#8220;/etc/php5/apache2/&#8221;.</p>
<div class="my-site-command-box">
<p style="padding-left: 30px;"><strong># sudo vim /etc/php5/apache2/php.ini</strong></p>
</div>
<p style="padding-left: 30px;">I am using vim editor here to edit the php.ini file, you can use whatever tool you like</p>
<p style="text-align: left; padding-left: 30px;">There search for include_path. You will see an area that says,</p>
<p style="text-align: left; padding-left: 30px;"><strong>;include_path = &#8220;.:/usr/share/php&#8221;;</strong></p>
<p style="text-align: left; padding-left: 30px;"><a href="http://www.developmentwall.com/wp-content/uploads/2012/07/configure_php_ini.png" rel="lightbox[584]" title="configure_php_ini"><img class="alignnone size-medium wp-image-587" title="configure_php_ini" src="http://www.developmentwall.com/wp-content/uploads/2012/07/configure_php_ini-300x143.png" alt="" width="300" height="143" /></a></p>
<p style="padding-left: 30px;"><strong>include_path = &#8220;.:/usr/share/php :/var/www/ZendFramework-1.11.12/library&#8221;</strong></p>
<p style="padding-left: 30px;">Uncomment the include_path line and add your Zend Framework library path. Save the file and exit.</p>
<p style="padding-left: 30px;">6. Restart the apache with bellow command in shell</p>
<div class="my-site-command-box">
<p style="padding-left: 30px;"><strong> #sudo /etc/init.d/apache2 restart</strong></p>
</div>
<p style="padding-left: 30px;">7. Now we are ready to create project. In the shell run the bellow command</p>
<p style="padding-left: 30px;"><a href="http://www.developmentwall.com/wp-content/uploads/2012/07/create_project.png" rel="lightbox[584]" title="create_project"><img class="alignnone size-medium wp-image-588" title="create_project" src="http://www.developmentwall.com/wp-content/uploads/2012/07/create_project-300x102.png" alt="" width="300" height="102" /></a></p>
<div class="my-site-command-box">
<p style="padding-left: 30px;"><strong>#zf create project   /var/www/zend_learn </strong></p>
</div>
<p style="padding-left: 30px;">This command will create a project in /var/www/ directory with a name zend_learn</p>
<p style="padding-left: 30px;">8. Now open your browser and type http://localhost/zend_learn/public/</p>
<p style="padding-left: 30px;">You should see the bellow output in the browser</p>
<p style="padding-left: 30px;"><a href="http://www.developmentwall.com/wp-content/uploads/2012/07/run_application.png" rel="lightbox[584]" title="run_application"><img class="alignnone size-medium wp-image-589" title="run_application" src="http://www.developmentwall.com/wp-content/uploads/2012/07/run_application-300x169.png" alt="" width="300" height="169" /></a></p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">You are ready to code in Zend Framework</p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/install-zend-framework-ubuntu/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=584" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/install-zend-framework-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a secure password hash with SHA256 in php</title>
		<link>http://www.developmentwall.com/create-secure-password-hash-sha256-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-secure-password-hash-sha256-php</link>
		<comments>http://www.developmentwall.com/create-secure-password-hash-sha256-php/#comments</comments>
		<pubDate>Wed, 13 Jun 2012 10:05:04 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=572</guid>
		<description><![CDATA[Most of the time PHP developers encrypt password with MD5. But this days we need more secure encrypted  password. Bellow I will show how to use SHA256 encryption method to create secure password hash. We just need  two simple function: First function genenrate_salt create a random string which will be used as salt for password [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/create-secure-password-hash-sha256-php/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=572" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Most of the time PHP developers encrypt password with MD5. But this days we need more secure encrypted  password.</p>
<p>Bellow I will show how to use SHA256 encryption method to create secure password hash.</p>
<p>We just need  two simple function:</p>
<p>First function <strong>genenrate_salt</strong> create a random string which will be used as salt for password hashing and function<strong> genenrate_password</strong>   do the rest</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

function genenrate_salt(){
$rndstring = &quot;&quot;;
$length = 64;
$a = &quot;&quot;;
$b = &quot;&quot;;
$template = &quot;1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;;
settype($length, &quot;integer&quot;);
settype($rndstring, &quot;string&quot;);
settype($a, &quot;integer&quot;);
settype($b, &quot;integer&quot;);

for ($a = 0; $a &lt;= $length; $a++) {
$b = rand(0, strlen($template) - 1);
$rndstring .= $template[$b];
}

return $rndstring;
}

function genenrate_password($salt,$pass){
$password_hash = '';

$mysalt = $salt;
$password_hash= hash('SHA256', &quot;-&quot;.$mysalt.&quot;-&quot;.$pass.&quot;-&quot;);

return $password_hash;
}

$salt = genenrate_salt();
$plain_pass = &quot;hello123&quot;; /* any password/text collected from user input */

echo &quot;My Hash Password Is: &quot;.genenrate_password($salt , $plain_pass);

?
</pre>
<p>Hope this will help some one.</p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/create-secure-password-hash-sha256-php/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=572" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/create-secure-password-hash-sha256-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Very small php function to calculate age from date of birth</title>
		<link>http://www.developmentwall.com/small-php-function-calculate-age-date-birth/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=small-php-function-calculate-age-date-birth</link>
		<comments>http://www.developmentwall.com/small-php-function-calculate-age-date-birth/#comments</comments>
		<pubDate>Wed, 16 May 2012 05:53:55 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=565</guid>
		<description><![CDATA[The bellow simple function will calculate  age from a date of birth Output: I am  12 years old<div class="tantan-getcomments"><a href="http://www.developmentwall.com/small-php-function-calculate-age-date-birth/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=565" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>The bellow simple function will calculate  age from a date of birth</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

function get_age($birth_date){
 return floor((time() - strtotime($birth_date))/31556926);
 }

echo &quot; I am &quot;.get_age(&quot;2000-05-10&quot;) .&quot; years old&quot;;

?&gt;
</pre>
<p>Output: I am  12 years old</p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/small-php-function-calculate-age-date-birth/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=565" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/small-php-function-calculate-age-date-birth/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML5  Basics</title>
		<link>http://www.developmentwall.com/html5-basics/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html5-basics</link>
		<comments>http://www.developmentwall.com/html5-basics/#comments</comments>
		<pubDate>Thu, 03 May 2012 18:16:45 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=545</guid>
		<description><![CDATA[HTML5 is the latest version of HTML and XHTML. HTML5 makes  things very simple but its powerful. I will show some very basic tag for HTML5 1. The document Type(Doctype) Declaration: The HTML &#60;!DOCTYPE&#62; is used  to  specify  which version and language the document is using. Before (Xhtml): After (html5): It will work in older [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/html5-basics/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=545" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>HTML5 is the latest version of HTML and XHTML. HTML5 makes  things very simple but its powerful.<br />
I will show some very basic tag for HTML5</p>
<p><strong>1. The document Type(Doctype) Declaration:</strong></p>
<p>The HTML &lt;!DOCTYPE&gt; is used  to  specify  which version and language the document is using.</p>
<p>Before (Xhtml):</p>
<pre class="brush: jscript; title: ; notranslate">
</pre>
<p>After (html5):</p>
<pre class="brush: jscript; title: ; notranslate">
</pre>
<p>It will work in older browsers too. This is not only for html5, it’s also for earlier version of html.</p>
<p><strong>2.    Meta Charset:</strong></p>
<p>Before (Xhtml):</p>
<pre class="brush: jscript; title: ; notranslate">
</pre>
<p>After:</p>
<pre class="brush: jscript; title: ; notranslate">
</pre>
<p><strong>3.    Scripts and Links:</strong></p>
<p>Before (Xhtml):</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;script.js&quot;&gt;&lt;/script&gt;
</pre>
<p>After (html5):</p>
<pre class="brush: jscript; title: ; notranslate">&lt;/pre&gt;

&lt;script type=&quot;text/javascript&quot; src=&quot;script.js&quot;&gt;&lt;/script&gt;
</pre>
<p>Here the type attribute is removed</p>
<p><strong>4.    Form  Input Type:</strong></p>
<pre class="brush: jscript; title: ; notranslate">
&lt;input id=&quot;email&quot; type=&quot;email&quot; name=&quot;email&quot; /&gt;                 &lt;!-- email  type for select email with validation --&gt;
&lt;input type=&quot;color&quot; name=&quot;txtcolor&quot; /&gt;                          &lt;!--color type for select color --&gt;
&lt;input type=&quot;tel&quot; name=&quot;usrtel&quot; /&gt;                             &lt;!-- tel field is  for telephone number --&gt;
&lt;input type=&quot;date&quot; name=&quot;bday&quot; /&gt;                                 &lt;!--date type for select date--&gt;
&lt;input type=&quot;datetime&quot; name=&quot;txtdatetime&quot; /&gt;                     &lt;!--datetime type for select date--&gt;
&lt;input type=&quot;month&quot; name=&quot;txtmonth&quot; /&gt;                         &lt;!-- month type for select month--&gt;
&lt;input type=&quot;number&quot; name=&quot;quantity&quot; /&gt;        &lt;!--quantity  type for  numeric field--&gt;
&lt;input type=&quot;search&quot; name=&quot;googlesearch&quot; /&gt;                  &lt;!-- search type for search--&gt;
</pre>
<p><strong>5. Placeholder:</strong></p>
<pre class="brush: jscript; title: ; notranslate">

&lt;input type=&quot;text&quot; name=&quot;search&quot; /&gt;
</pre>
<p>Use placeholder attribute. you don&#8217;t need JavaScript  for this event.</p>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/05/html5_place_holder.png" rel="lightbox[545]" title="html5_place_holder"><img class="alignnone size-medium wp-image-554" title="html5_place_holder" src="http://www.developmentwall.com/wp-content/uploads/2012/05/html5_place_holder-300x168.png" alt="html5_place_holder" width="300" height="168" /></a></div>
<div class="my-site-image-box"></div>
<p><iframe name="iframe1" width="320" height="370" src="http://demo.webtvnext.com/widget/live1/6" frameborder="yes" scrolling="no"></iframe></p>
<p><iframe name="iframe1" width="560" height="505" src="http://demo.webtvnext.com/live/index/1274585/560/505" frameborder="yes" scrolling="no"></iframe></p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/html5-basics/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=545" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/html5-basics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful command for ubuntu /  linux part 2</title>
		<link>http://www.developmentwall.com/uuseful-command-ubuntu-linux-part-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uuseful-command-ubuntu-linux-part-2</link>
		<comments>http://www.developmentwall.com/uuseful-command-ubuntu-linux-part-2/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 16:37:50 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=532</guid>
		<description><![CDATA[Display used and free memory on the system #free Shows disk free space #df Display a tree of processes #pstree Display Calendar in command line #cal Delete all command history #history -c More Command<div class="tantan-getcomments"><a href="http://www.developmentwall.com/uuseful-command-ubuntu-linux-part-2/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=532" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>
<div>Display used and free memory on the system</div>
<div class="my-site-command-box"><strong>#free</strong></div>
</p>
<p><div>Shows disk free space</div>
<div class="my-site-command-box"><strong>#df</strong></div>
</p>
<p><div>Display a tree of processes</div>
<div class="my-site-command-box"><strong>#pstree</strong></div>
</p>
<p><div>Display Calendar in command line</div>
<div class="my-site-command-box"><strong>#cal</strong></div>
</p>
<p><div>Delete all command history</div>
<div class="my-site-command-box"><strong>#history -c</strong></div>
</p>
<p>
<a title="More Command" href="http://www.developmentwall.com/simple-command-ubuntu-linux/">More Command</a></p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/uuseful-command-ubuntu-linux-part-2/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=532" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/uuseful-command-ubuntu-linux-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to CodeIgniter-Part 1</title>
		<link>http://www.developmentwall.com/introduction-codeigniter-part-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=introduction-codeigniter-part-1</link>
		<comments>http://www.developmentwall.com/introduction-codeigniter-part-1/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 19:32:23 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[Codeiniter]]></category>
		<category><![CDATA[CI]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=525</guid>
		<description><![CDATA[PHP has many open source web application framework and CodeIgniter is one of  the most popular, easy, flexible and extendable MVC framework among all others framework. CodeIgniter can be used from small web site to large scale complex web application. With CodeIgniter, you can save time, make your web application more robust, your code will [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/introduction-codeigniter-part-1/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=525" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>PHP has many open source web application framework and CodeIgniter is one of  the most popular, easy, flexible and extendable MVC framework among all others framework.</p>
<p>CodeIgniter can be used from small web site to large scale complex web application. With CodeIgniter, you can save time, make your web application more robust, your code will be easier to read and maintenance. It is free, lightweight, and simple to install.</p>
<p>CodeIgniter is a MVC (Mode, view and controller) framework and from the bellow diagram you can get an overview of MVC.</p>
<p><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/mvc.png" rel="lightbox[525]" title="mvc"><img class="alignnone  wp-image-526" title="mvc" src="http://www.developmentwall.com/wp-content/uploads/2012/04/mvc-300x145.png" alt="mvc" width="372" height="176" /></a></p>
<p>In MVC you can logically segregate different part of an application.<br />
<br/><br />
In a simple line we can explain the MVC: <strong>View</strong> contains the presentation layer (user interface or html), <strong>Controller</strong> decides the flow of control for the application and <strong>Model</strong> deals with data and business logic.</p>
<p><em>Next part I will show the CodeIgniter  installation and configuraiton </em></p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/introduction-codeigniter-part-1/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=525" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/introduction-codeigniter-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to put Controller inside Multi Level directory or Subfolder in CodeIgniter</title>
		<link>http://www.developmentwall.com/put-controller-multi-level-directory-subfolder-codeigniter/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=put-controller-multi-level-directory-subfolder-codeigniter</link>
		<comments>http://www.developmentwall.com/put-controller-multi-level-directory-subfolder-codeigniter/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 06:55:50 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[Codeiniter]]></category>
		<category><![CDATA[CI]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=516</guid>
		<description><![CDATA[By default Codeigniter does not have the support to put Controller inside Multi Level directory or Sub Folder, but still you can do this. You just need to create your own Routing class which will extend the CI_Router. Follow the bellow steps: 1. create a php file with name MY_Router.php and put in inside application/libraries directory 2. [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/put-controller-multi-level-directory-subfolder-codeigniter/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=516" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>By default Codeigniter does not have the support to put Controller inside Multi Level directory or Sub Folder, but still you can do this.<br />
You just need to create your own Routing class which will extend the CI_Router.</p>
<p>Follow the bellow steps:<br />
1. create a php file with name MY_Router.php and put in inside application/libraries directory<br />
2. put the bellow code into the file</p>
<pre class="brush: php; title: ; notranslate">

&lt;?php
Class MY_Router extends CI_Router
{
Function MY_Router()
{
parent::CI_Router();
}

function _validate_request($segments)
{
if (file_exists(APPPATH.'controllers/'.$segments[0].EXT))
{
return $segments;
}

if (is_dir(APPPATH.'controllers/'.$segments[0]))
{
$this-&gt;set_directory($segments[0]);
$segments = array_slice($segments, 1);

while(count($segments) &gt; 0 &amp;&amp; is_dir(APPPATH.'controllers/'.$this-&gt;directory.$segments[0]))
{

$this-&gt;set_directory($this-&gt;directory . $segments[0]);
$segments = array_slice($segments, 1);
}

if (count($segments) &gt; 0)
{
if ( ! file_exists(APPPATH.'controllers/'.$this-&gt;fetch_directory().$segments[0].EXT))
{
show_404($this-&gt;fetch_directory().$segments[0]); /* show 404 page */
}
}
else
{
$this-&gt;set_class($this-&gt;default_controller);
$this-&gt;set_method('index');

if ( ! file_exists(APPPATH.'controllers/'.$this-&gt;fetch_directory().$this-&gt;default_controller.EXT))
{
$this-&gt;directory = '';
return array();
}

}

return $segments;
}

}
}
?&gt;
</pre>
<p>3. now you can access the controller like this http://localhost/CodeIgniter_1.7.2/admin/section/welcome<br />
here admin/section is Sub Folder and <strong>welcome</strong> is the controller name</p>
<p>Hope this will  help some one&#8230;&#8230;&#8230;</p>
<p><em>Note: This fix will work only CodeIgniter version upto  1.7.3</em></p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/put-controller-multi-level-directory-subfolder-codeigniter/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=516" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/put-controller-multi-level-directory-subfolder-codeigniter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Install Apache, PHP, MYSQL and phpMyAdmin in Ubuntu</title>
		<link>http://www.developmentwall.com/install-apache-php-mysql-phpmyadmin-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-apache-php-mysql-phpmyadmin-ubuntu</link>
		<comments>http://www.developmentwall.com/install-apache-php-mysql-phpmyadmin-ubuntu/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 19:00:56 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MYSql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=453</guid>
		<description><![CDATA[I will show the command and configuration to install Apache, PHP, MYSQL and phpMyAdmin in Ubuntu 1. Installing  Apache Open your terminal and type the bellow command        #sudo apt-get install apache2 It will ask for your password, Type your ubuntu password and press  enter key, it will ask for confirmation Type y and press [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/install-apache-php-mysql-phpmyadmin-ubuntu/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=453" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>I will show the command and configuration to install Apache, PHP, MYSQL and phpMyAdmin in Ubuntu</p>
<p><strong>1. Installing  Apache</strong></p>
<ul>
<li>Open your terminal and type the bellow command</li>
</ul>
<div class="my-site-command-box"><strong>       #sudo apt-get install apache2</strong></div>
<div class="my-site-command-box"></div>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/install_apache.png" rel="lightbox[453]" title="install_apache"><img class="alignnone size-medium wp-image-456" title="install_apache" src="http://www.developmentwall.com/wp-content/uploads/2012/04/install_apache-300x126.png" alt="install_apache" width="300" height="126" /></a></div>
<ul>
<li>It will ask for your password, Type your ubuntu password and press  enter key, it will ask for confirmation</li>
</ul>
<p><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" rel="lightbox[453]" title="confirm_install"><img class="alignnone  wp-image-454" title="confirm_install" src="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" alt="confirm_install" width="266" height="22" /></a></p>
<ul>
<li>Type y and press enter key</li>
<li>When installation is done, open your browser and type   <em>http://localhost/</em></li>
<li>I will print it works into the browser</li>
</ul>
<p><strong>2. Installing PHP</strong></p>
<ul>
<li>Open your terminal and type the bellow command</li>
</ul>
<div class="my-site-command-box"><strong>        #sudo apt-get install php5 libapache2-mod-php5</strong></div>
<div class="my-site-command-box"></div>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/install_php.png" rel="lightbox[453]" title="install_php"><img class="alignnone size-medium wp-image-457" title="install_php" src="http://www.developmentwall.com/wp-content/uploads/2012/04/install_php-300x123.png" alt="install_php" width="300" height="123" /></a></div>
<ul>
<li>It will ask for your password, Type your ubuntu password and press  enter key, it will ask for confirmation</li>
</ul>
<p><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" rel="lightbox[453]" title="confirm_install"><img class="alignnone size-full wp-image-454" title="confirm_install" src="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" alt="confirm_install" width="266" height="22" /></a></p>
<ul>
<li>Type y and press enter key</li>
<li>After the successful installation restart Apache using the below command</li>
</ul>
<div class="my-site-command-box"><strong>        #sudo /etc/init.d/apache2 restart</strong></div>
<ul>
<li>Open your  /var/www/ directory  and create a php file  with any name like info.php file, write some php code into the file</li>
</ul>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/test_php_and_apache.png" rel="lightbox[453]" title="test_php_and_apache"><img class="alignnone size-medium wp-image-458" title="test_php_and_apache" src="http://www.developmentwall.com/wp-content/uploads/2012/04/test_php_and_apache-300x157.png" alt="test_php_and_apache" width="300" height="157" /></a></div>
<ul>
<li>When installation is done and you have to created the php file into the /var/www/ directory, open your browser and type</li>
</ul>
<p><em>     http://localhost/info.php</em></p>
<ul>
<li>It will   execute the file, which confirm that your apache and php installation was successful</li>
</ul>
<p><strong>3.  Installing MYSQL</strong></p>
<ul>
<li>Open your terminal and type the bellow command</li>
</ul>
<div class="my-site-command-box"><strong>         #sudo apt-get install mysql-server</strong></div>
<div class="my-site-command-box"></div>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/install_mysql.png" rel="lightbox[453]" title="install_mysql"><img class="alignnone size-medium wp-image-460" title="install_mysql" src="http://www.developmentwall.com/wp-content/uploads/2012/04/install_mysql-300x140.png" alt="install_mysql" width="300" height="140" /></a></div>
<ul>
<li>It will ask for your password, Type your ubuntu password and press  enter key, it will ask for confirmation</li>
</ul>
<p><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" rel="lightbox[453]" title="confirm_install"><img title="confirm_install" src="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" alt="confirm_install" width="266" height="22" /></a></p>
<ul>
<li>Type y and press enter key</li>
<li>During the installation you will be prompted for a password. Choose a secure and type the password and press enter. It will also ask to re enter password</li>
</ul>
<p><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/set_mysql_password.png" rel="lightbox[453]" title="set_mysql_password"><img class="alignnone size-medium wp-image-461" title="set_mysql_password" src="http://www.developmentwall.com/wp-content/uploads/2012/04/set_mysql_password-300x183.png" alt="set_mysql_password" width="300" height="183" /></a></p>
<p><strong>4. Installing phpMyAdmin</strong></p>
<ul>
<li>Open your terminal and type the bellow command</li>
</ul>
<div class="my-site-command-box"><strong>        #sudo apt-get install phpmyadmin</strong></div>
<div class="my-site-command-box"></div>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/install_phpmyadmin.png" rel="lightbox[453]" title="install_phpmyadmin"><img class="alignnone size-medium wp-image-462" title="install_phpmyadmin" src="http://www.developmentwall.com/wp-content/uploads/2012/04/install_phpmyadmin-300x175.png" alt="install_phpmyadmin" width="300" height="175" /></a></div>
<ul>
<li>It will ask for your password, Type your ubuntu password and press  enter key, it will ask for confirmation</li>
</ul>
<p><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" rel="lightbox[453]" title="confirm_install"><img title="confirm_install" src="http://www.developmentwall.com/wp-content/uploads/2012/04/confirm_install.png" alt="confirm_install" width="266" height="22" /></a></p>
<ul>
<li>Type y and press enter key</li>
<li>During the installation you will be prompted for a web server configuration. Select <strong>Apache</strong> and press Enter</li>
</ul>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/select_web_server_for_phpmyadmin.png" rel="lightbox[453]" title="select_web_server_for_phpmyadmin"><img class="alignnone size-medium wp-image-463" title="select_web_server_for_phpmyadmin" src="http://www.developmentwall.com/wp-content/uploads/2012/04/select_web_server_for_phpmyadmin-300x190.png" alt="select_web_server_for_phpmyadmin" width="300" height="190" /></a></div>
<ul>
<li>Now you will be prompted for phpmyadmin configuration, Select <strong>no</strong></li>
</ul>
<div class="my-site-image-box"><a href="http://www.developmentwall.com/wp-content/uploads/2012/04/phpmyadmin_config_option.png" rel="lightbox[453]" title="phpmyadmin_config_option"><img class="alignnone size-medium wp-image-464" title="phpmyadmin_config_option" src="http://www.developmentwall.com/wp-content/uploads/2012/04/phpmyadmin_config_option-300x171.png" alt="phpmyadmin_config_option" width="300" height="171" /></a></div>
<ul>
<li>In terminal Run the bellow command</li>
</ul>
<div class="my-site-command-box"><strong>          #sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d</strong></div>
<ul>
<li>Restart your apache server</li>
</ul>
<div class="my-site-command-box"><strong>         #sudo /etc/init.d/apache2 restart</strong></div>
<ul>
<li>Open your browser and type</li>
</ul>
<p>http://localhost/phpmyadmin/</p>
<p>Your Apache, PHP, MYSQL and phpMyAdmin is ready in Ubuntu, start your coding&#8230;..</p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/install-apache-php-mysql-phpmyadmin-ubuntu/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=453" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/install-apache-php-mysql-phpmyadmin-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simple way to detect iPad or iPhone from the php</title>
		<link>http://www.developmentwall.com/simple-detect-ipad-iphone-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-detect-ipad-iphone-php</link>
		<comments>http://www.developmentwall.com/simple-detect-ipad-iphone-php/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 17:05:48 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=448</guid>
		<description><![CDATA[Sometimes you may need to detect iPad and iPhone from the PHP. This is very simple to do this. Bellow I will show the code to detect iPad and iPhone from the PHP 1.    Detect  iPad 2. Detect  iPhone<div class="tantan-getcomments"><a href="http://www.developmentwall.com/simple-detect-ipad-iphone-php/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=448" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may need to detect <strong>iPad</strong> and <strong>iPhone</strong> from the <strong>PHP</strong>. This is very simple to do this.<br />
Bellow I will show the code to detect <strong>iPad</strong> and <strong>iPhone</strong> from the <strong>PHP</strong><br />
<strong>1.    Detect  iPad</strong></p>
<pre class="brush: php; title: ; notranslate">
$flag_ipad = strstr($_SERVER['HTTP_USER_AGENT'],&quot;iPad&quot;);
if($flag_ipad)
{
echo &quot;View from iPad&quot;;
}
</pre>
<p><strong>2. Detect  iPhone</strong></p>
<pre class="brush: php; title: ; notranslate">
$flag_iphone = strstr($_SERVER['HTTP_USER_AGENT'],&quot; iPhone&quot;);

if($flag_iphone){
echo &quot;View from iPhone&quot;;
}
</pre>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/simple-detect-ipad-iphone-php/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=448" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/simple-detect-ipad-iphone-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy way to remove  index.php file from Codeigniter</title>
		<link>http://www.developmentwall.com/easy-wayremove-index-php-file-codeigniter/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=easy-wayremove-index-php-file-codeigniter</link>
		<comments>http://www.developmentwall.com/easy-wayremove-index-php-file-codeigniter/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 18:31:15 +0000</pubDate>
		<dc:creator>Mhabub Mamun</dc:creator>
				<category><![CDATA[Codeiniter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.developmentwall.com/?p=434</guid>
		<description><![CDATA[Clean url is very important for today’s web applications. Search engine gives higher  priority for the sites which have clean url. Codeigniter is one of the most popular PHP  framework. By default it shows index.php page in the url. By default it will show the url like  http://localhost/my-application-name/index.php/news/hello I will show very easy way to [...]<div class="tantan-getcomments"><a href="http://www.developmentwall.com/easy-wayremove-index-php-file-codeigniter/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=434" width="100" height="15" style="border:0;" /></a></div>]]></description>
			<content:encoded><![CDATA[<p>Clean url is very important for today’s web applications. Search engine gives higher  priority for the sites which have clean url.</p>
<p>Codeigniter is one of the most popular PHP  framework. By default it shows index.php page in the url.<br />
By default it will show the url like  <strong>http://localhost/my-application-name/index.php/news/hello</strong><br />
I will show very easy way to remove the index.php from the url.</p>
<p>You just need 2 step</p>
<p>1.  Create an .htaccess file into the root dir and put the bellow lines of command</p>
<pre class="brush: css; title: ; notranslate">
RewriteEngine On
RewriteBase /my-application-name

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</pre>
<p>In  <strong>RewriteBase</strong> you need to give your application name. Here I have given name my-application-name. You will need to change this name according you application name.</p>
<p>2. Go to application/config directory. Open config.php file.<br />
<strong>Change $config['index_page'] = &#8220;index.php&#8221;; </strong> to<strong> $config['index_page'] = &#8220;&#8221;;</strong></p>
<p>and you are done. Now you can visit your site like this<br />
<strong>http://localhost/my-application-name/news/hello</strong></p>
<p>&nbsp;</p>
<p><strong>Note:  You must have mod_rewrite module enabled for apache</strong></p>
<div class="tantan-getcomments"><a href="http://www.developmentwall.com/easy-wayremove-index-php-file-codeigniter/#comments"><img src="http://www.developmentwall.com/wp-content/plugins/tantan/get-comments.php?p=434" width="100" height="15" style="border:0;" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.developmentwall.com/easy-wayremove-index-php-file-codeigniter/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
