<?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>thephpx - codeigniter junky &#187; Uncategorized</title>
	<atom:link href="http://www.thephpx.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thephpx.com</link>
	<description>codeigniter, jquery, php, mysql</description>
	<lastBuildDate>Mon, 21 Nov 2011 21:17:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Dummies guide to LAMP setup on linux :)</title>
		<link>http://www.thephpx.com/2011/05/31/dummies-guide-to-lamp-setup-on-linux/</link>
		<comments>http://www.thephpx.com/2011/05/31/dummies-guide-to-lamp-setup-on-linux/#comments</comments>
		<pubDate>Tue, 31 May 2011 15:40:35 +0000</pubDate>
		<dc:creator>thephpx</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[LAMP Stack]]></category>
		<category><![CDATA[phpMyadmin]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=224</guid>
		<description><![CDATA[Hello everyone, Recently I came across several nifty apt-get commands that quite handy and if used properly can be a life saver while setting up LAMP stack on your system. Step 1 : One line LAMP setup on linux - sudo apt-get install lamp-server^ Step 2 : Setup phpMyadmin to manage your mysql databases - &#8230; <a href="http://www.thephpx.com/2011/05/31/dummies-guide-to-lamp-setup-on-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hello everyone,<br />
<br/><br />
Recently I came across several nifty apt-get commands that quite handy and if used properly can be a life saver while setting up LAMP stack on your system.<br />
<br/><br />
<strong>Step 1 : One line LAMP setup on linux -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">sudo apt-get install lamp-server^</div>
</li>
</ol>
</div>
<p><br/><br />
<strong>Step 2 : Setup phpMyadmin to manage your mysql databases -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">sudo apt-get install phpmyadmin</div>
</li>
</ol>
</div>
<p><br/><br />
<strong>Step 3 : Setup xdebug and integrate with php5 installation -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">sudo apt-get install php5-xdebug</div>
</li>
</ol>
</div>
<p><br/><br />
<strong>Step 4 : Setup cURL -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">sudo apt-get install php5-curl</div>
</li>
</ol>
</div>
<p><br/><br />
<strong>After the above command finishes installing curl do the following -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">cd /etc/php5/conf.d/
</div>
</li>
<li class="li1">
<div class="de1">sudo gedit xdebug.ini</div>
</li>
</ol>
</div>
<p><br/><br />
<strong>After opening the file in gedit, add the following lines at the end of the file then save and close it.</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">xdebug.remote_enable=On
</div>
</li>
<li class="li1">
<div class="de1">xdebug.remote_host=&quot;localhost&quot;
</div>
</li>
<li class="li1">
<div class="de1">xdebug.remote_port=9000
</div>
</li>
<li class="li1">
<div class="de1">xdebug.remote_handler=&quot;dbgp&quot;</div>
</li>
</ol>
</div>
<p><br/><br />
The following step is helpful for those who later want to integrate andorid SDK, because only Sun JDK is supported when running the android SDK app, is handy if you use it.<br />
<br/><br />
<strong>Step 5 : Setup sun -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">sudo apt-get install sun-java6</div>
</li>
</ol>
</div>
<p><br/><br />
<strong>Step 6 : Enable Rewrite Module for PHP -</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">a2enmod rewrite</div>
</li>
</ol>
</div>
<p><br/><br />
<br/><br />
The above will do a smooth install of a functioning LAMP server on the system <img src='http://www.thephpx.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , comments and queries are always welcomed.<br />
<br/><br />
thanks,</p>
<blockquote>
<h4>faisal ahmed</h4>
<p><em style="padding: 0; margin: 0;">web application developer</em><br />
<strong style="padding: 0; margin: 0;">web: </strong>http://www.faisalbd.com/<br />
<strong style="padding: 0; margin: 0;">email: </strong>thephpx(at)gmail(dot)com</p></blockquote>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://www.thephpx.com/2011/05/31/dummies-guide-to-lamp-setup-on-linux/"></g:plusone></div><div class="shr-publisher-224"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thephpx.com%2F2011%2F05%2F31%2Fdummies-guide-to-lamp-setup-on-linux%2F&amp;title=Dummies%20guide%20to%20LAMP%20setup%20on%20linux%20%3A%29" id="wpa2a_2" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save_url=http_3A_2F_2Fwww.thephpx.com_2F2011_2F05_2F31_2Fdummies-guide-to-lamp-setup-on-linux_2F_amp_title=Dummies_20guide_20to_20LAMP_20setup_20on_20linux_20_3A_29?referer=');"><img src="http://www.thephpx.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2011/05/31/dummies-guide-to-lamp-setup-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>codeigniter: helper function to call library or model function in view</title>
		<link>http://www.thephpx.com/2010/05/16/codeigniter-helper-function-to-call-library-or-model-function-in-view/</link>
		<comments>http://www.thephpx.com/2010/05/16/codeigniter-helper-function-to-call-library-or-model-function-in-view/#comments</comments>
		<pubDate>Sat, 15 May 2010 17:43:51 +0000</pubDate>
		<dc:creator>thephpx</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[call function view]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[function in view]]></category>
		<category><![CDATA[view helper]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=75</guid>
		<description><![CDATA[Hi I am back again, This time with two helper function that lets you call any function from any model or library, given you already have the model or library loaded into the instance. This one calls a library function with a single parameter being passed. if&#40;!function_exists&#40;&#8216;call_lib_func&#8217;&#41;&#41;&#123; &#160;function call_lib_func&#40;$library_name, $function_name, $parameters=null&#41;&#123; &#160; $ci = &#38;amp;get_instance&#40;&#41;; &#8230; <a href="http://www.thephpx.com/2010/05/16/codeigniter-helper-function-to-call-library-or-model-function-in-view/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hi I am back again,</p>
<p>This time with two helper function that lets you call any function from any model or library, given you already have the model or library loaded into the instance.</p>
<p>This one calls a library function with a single parameter being passed.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">if</span><span class="br0">&#40;</span>!<a href="http://www.php.net/function_exists" onclick="pageTracker._trackPageview('/outgoing/www.php.net/function_exists?referer=');"><span class="kw3">function_exists</span></a><span class="br0">&#40;</span><span class="st0">&#8216;call_lib_func&#8217;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">function</span> call_lib_func<span class="br0">&#40;</span><span class="re0">$library_name</span>, <span class="re0">$function_name</span>, <span class="re0">$parameters</span>=<span class="kw2">null</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$ci</span> = &amp;amp;get_instance<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$ci</span>-&gt;<span class="me1">load</span>-&gt;<span class="me1">library</span><span class="br0">&#40;</span><span class="re0">$library_name</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="kw1">return</span> <span class="re0">$ci</span>-&gt;<span class="re0">$library_name</span>-&gt;<span class="re0">$function_name</span><span class="br0">&#40;</span><span class="re0">$parameters</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>The next one calls a model function with a single parameter being passed.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">if</span><span class="br0">&#40;</span>!<a href="http://www.php.net/function_exists" onclick="pageTracker._trackPageview('/outgoing/www.php.net/function_exists?referer=');"><span class="kw3">function_exists</span></a><span class="br0">&#40;</span><span class="st0">&#8216;call_mod_func&#8217;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">function</span> call_mod_func<span class="br0">&#40;</span><span class="re0">$model_name</span>, <span class="re0">$function_name</span>, <span class="re0">$parameters</span>=<span class="kw2">null</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$ci</span> = &amp;amp;get_instance<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$ci</span>-&gt;<span class="me1">load</span>-&gt;<span class="me1">model</span><span class="br0">&#40;</span><span class="re0">$model_name</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="kw1">return</span> <span class="re0">$ci</span>-&gt;<span class="re0">$model_name</span>-&gt;<span class="re0">$function_name</span><span class="br0">&#40;</span><span class="re0">$parameters</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>As of now multiple parameter are not yet supported but I will soon post an extension of these two functions that will support multiple parameters. If you choose to use any of these functions feel free to use but a link back to my site is appreciated <img src='http://www.thephpx.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>thanks,</p>
<blockquote><p>thephpx</p></blockquote>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://www.thephpx.com/2010/05/16/codeigniter-helper-function-to-call-library-or-model-function-in-view/"></g:plusone></div><div class="shr-publisher-75"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thephpx.com%2F2010%2F05%2F16%2Fcodeigniter-helper-function-to-call-library-or-model-function-in-view%2F&amp;title=codeigniter%3A%20helper%20function%20to%20call%20library%20or%20model%20function%20in%20view" id="wpa2a_4" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save_url=http_3A_2F_2Fwww.thephpx.com_2F2010_2F05_2F16_2Fcodeigniter-helper-function-to-call-library-or-model-function-in-view_2F_amp_title=codeigniter_3A_20helper_20function_20to_20call_20library_20or_20model_20function_20in_20view?referer=');"><img src="http://www.thephpx.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2010/05/16/codeigniter-helper-function-to-call-library-or-model-function-in-view/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>thephpx reloaded!</title>
		<link>http://www.thephpx.com/2009/07/31/thephpx/</link>
		<comments>http://www.thephpx.com/2009/07/31/thephpx/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 04:02:44 +0000</pubDate>
		<dc:creator>thephpx</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[thephpx]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=1</guid>
		<description><![CDATA[Hello everybody, I am back at blogging. This is just the starter hope to come-up with some solid posts ASAP! So, hang-on and keep visiting - thephpx]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hello everybody,</p>
<p>I am back at blogging. This is just the starter hope to come-up with some solid posts ASAP!</p>
<p>So, hang-on and keep visiting <img src='http://www.thephpx.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong><em>- thephpx</em></strong></p>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="tall" count="1" href="http://www.thephpx.com/2009/07/31/thephpx/"></g:plusone></div><div class="shr-publisher-1"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thephpx.com%2F2009%2F07%2F31%2Fthephpx%2F&amp;title=thephpx%20reloaded%21" id="wpa2a_6" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save_url=http_3A_2F_2Fwww.thephpx.com_2F2009_2F07_2F31_2Fthephpx_2F_amp_title=thephpx_20reloaded_21?referer=');"><img src="http://www.thephpx.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/07/31/thephpx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

