<?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</title>
	<atom:link href="http://www.thephpx.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thephpx.com</link>
	<description>codeigniter, php, mysql, xhtml, css, jquery, flex web-development blog</description>
	<lastBuildDate>Sun, 25 Oct 2009 10:05:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Simple HTML DOM Parser, Codeigniter Integration</title>
		<link>http://www.thephpx.com/2009/10/25/php-simple-html-dom-parser-codeigniter-integration/</link>
		<comments>http://www.thephpx.com/2009/10/25/php-simple-html-dom-parser-codeigniter-integration/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 10:05:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[DOM Parser]]></category>
		<category><![CDATA[PHP simple DOM parser]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=48</guid>
		<description><![CDATA[Hi all,
I came across &#8220;Simple HTML DOM Parser&#8221; recently that allows jQuery like DOM selection. This function is quite handy to do some kungfoo DOM manipulation on the fly!
I needed to use it on codeIgniter so modified the files and integrated it into a single codeIgniter library. The original files can be accessed from here [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>I came across &#8220;Simple HTML DOM Parser&#8221; recently that allows jQuery like DOM selection. This function is quite handy to do some kungfoo DOM manipulation on the fly!</p>
<p>I needed to use it on codeIgniter so modified the files and integrated it into a single codeIgniter library. The original files can be accessed from here its <a title="link to simple html dom parser" href="http://sourceforge.net/project/showfiles.php?group_id=218559" target="_blank" onclick="pageTracker._trackPageview('/outgoing/sourceforge.net/project/showfiles.php?group_id=218559&amp;referer=');">sourceforge</a> project page. For the codeigniter version of the library <a title="codeigniter simple dom parser" href="http://www.thephpx.com/files/ci_simple_dom_parser.zip" target="_blank">click here</a>.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re0">$this</span>-&gt;<span class="me1">load</span>-&gt;<span class="me1">library</span><span class="br0">&#40;</span><span class="st0">&#8216;domparser&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$html</span> = <span class="re0">$this</span>-&gt;<span class="me1">domparser</span>-&gt;<span class="me1">file_get_html</span><span class="br0">&#40;</span><span class="st0">&#8216;http://www.google.com/&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$rank</span> = <span class="re0">$html</span>-&gt;<span class="me1">find</span><span class="br0">&#40;</span><span class="st0">&#8216;b.gb1&#8242;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><a href="http://www.php.net/print_r" onclick="pageTracker._trackPageview('/outgoing/www.php.net/print_r?referer=');"><span class="kw3">print_r</span></a><span class="br0">&#40;</span><span class="re0">$rank</span><span class="br0">&#41;</span>; <span class="co1">// will show all content of tag with class gb1</span></div>
</li>
</ol>
</div>
<p>For further utility functions of the DOM parser visit <a href="http://simplehtmldom.sourceforge.net/manual.htm" onclick="pageTracker._trackPageview('/outgoing/simplehtmldom.sourceforge.net/manual.htm?referer=');">this link</a>.</p>
<p>Feel free to comment or contact me directly for any query.</p>
<p>take care,</p>
<blockquote><p><strong><em>thephpx</em></strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/10/25/php-simple-html-dom-parser-codeigniter-integration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Staged Code-Igniter Web Application Development</title>
		<link>http://www.thephpx.com/2009/09/08/staged-code-igniter-web-application-development/</link>
		<comments>http://www.thephpx.com/2009/09/08/staged-code-igniter-web-application-development/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 11:47:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[Code-Igniter]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[Staged]]></category>
		<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=39</guid>
		<description><![CDATA[Today I am going to share a little customization that I do while i develop codeigniter based web application. Now a days in most web application development firms a three-tire development process is followed. This is done to ensure smooth roll-out of the application from development to live.
The three-tire development methodology involves three stages of [...]]]></description>
			<content:encoded><![CDATA[<p>Today I am going to share a little customization that I do while i develop codeigniter based web application. Now a days in most web application development firms a three-tire development process is followed. This is done to ensure smooth roll-out of the application from development to live.</p>
<p>The three-tire development methodology involves three stages of development servers. <strong>First</strong> comes the local server which is setup in your laptop or workstation. <strong>Then</strong> comes the internal test server, which is a central server that holds all the SVN repository as well as hosts the site and make it accessable to all from within the network. This server is also sometimes called staggin server. <strong>Last</strong> but not the least comes the live server, in most cases its your clients server where you upload your codes after they have passed the QA checks of both local-server and staging-server.</p>
<p>One related aspect of staged development is that in most cases they involve using SVN server for version control. Using SVN, though you can automatically update your server files from SVN server through &#8220;<strong>svn update</strong>&#8221; command but if the config file is not configured to take the different servers into consideration you will have to update the config file every time you do update on a server or set separate config file on each server and add the file to ignor list of the SVN repository.</p>
<p>Our way of doing it is to use a single config file and make it lookup the host address to determine which configuration settings to use.  If you are familiar with codeigniter then you already know you will find your config file at <strong>system/application/config/config.php</strong>.</p>
<p>Find the following line in the <strong>config.php</strong> file:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"> &nbsp;<span class="re0">$config</span><span class="br0">&#91;</span><span class="st0">&#8216;base_url&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;http://localhost/codeigniter/&quot;</span>;</div>
</li>
</ol>
</div>
<p>Replace the line with the following lines -</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><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;HTTP_HOST&#8217;</span><span class="br0">&#93;</span> == <span class="st0">&quot;localhost&quot;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$config</span><span class="br0">&#91;</span><span class="st0">&#8216;base_url&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;http://localhost/codeigniter/&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span><span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;HTTP_HOST&#8217;</span><span class="br0">&#93;</span> == <span class="st0">&quot;192.168.1.1&quot;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$config</span><span class="br0">&#91;</span><span class="st0">&#8216;base_url&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;http://192.168.1.1/codeigniter/&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$config</span><span class="br0">&#91;</span><span class="st0">&#8216;base_url&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;http://www.live-server.com/codeigniter/&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Now all your URL&#8217;s will be adjusted based on the server the site is accessed from. Next we will modify the database.php file which is also located in <strong>system/application/config/database.php</strong></p>
<p>Find the following line(s) in the <strong>database.php </strong>file:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"> &nbsp;<span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;hostname&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;localhost&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;username&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;root&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;password&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;database&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;restobolivia&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbdriver&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;mysql&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbprefix&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;pconnect&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">TRUE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;db_debug&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">TRUE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cache_on&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">FALSE</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cachedir&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;char_set&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbcollat&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8_general_ci&quot;</span>;</div>
</li>
</ol>
</div>
<p>Replace the above line with the following once:</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><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;HTTP_HOST&#8217;</span><span class="br0">&#93;</span> == <span class="st0">&quot;localhost&quot;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;hostname&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;localhost&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;username&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;root&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;password&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;password&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;database&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;database_name&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbdriver&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;mysql&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbprefix&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;pconnect&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">TRUE</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;db_debug&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">TRUE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cache_on&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">FALSE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cachedir&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;char_set&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbcollat&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8_general_ci&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span><span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;HTTP_HOST&#8217;</span><span class="br0">&#93;</span> == <span class="st0">&quot;192.168.1.1&quot;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;hostname&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;localhost&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;username&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;root&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;password&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;password&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;database&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;database_name&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbdriver&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;mysql&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbprefix&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;pconnect&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">TRUE</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;db_debug&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">FALSE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cache_on&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">FALSE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cachedir&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;char_set&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbcollat&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8_general_ci&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;hostname&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;localhost&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;username&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;root&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;password&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;password&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;database&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;database_name&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbdriver&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;mysql&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbprefix&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;pconnect&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">TRUE</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;db_debug&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">FALSE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cache_on&#8217;</span><span class="br0">&#93;</span> = <span class="kw2">FALSE</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;cachedir&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;char_set&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re0">$db</span><span class="br0">&#91;</span><span class="st0">&#8216;default&#8217;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#8216;dbcollat&#8217;</span><span class="br0">&#93;</span> = <span class="st0">&quot;utf8_general_ci&quot;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>The above code will give the server specific database configuration to the application based on the server it is accessed from.</p>
<p>Now save these two files and test your application you should be able to use the same config.php file in different servers if they are properly configured on <strong>config.php</strong> and <strong>database.php</strong></p>
<p>For any further query feel free to leave a comment I will try my best to help you out.</p>
<p>take care,</p>
<blockquote><p><em><strong>thephpx</strong></em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/09/08/staged-code-igniter-web-application-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sprintometer as a SCRUM management tool</title>
		<link>http://www.thephpx.com/2009/08/06/sprintometer-as-a-scrum-management-tool/</link>
		<comments>http://www.thephpx.com/2009/08/06/sprintometer-as-a-scrum-management-tool/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 01:40:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[backlog]]></category>
		<category><![CDATA[product backlog]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[retrospective]]></category>
		<category><![CDATA[scrum]]></category>
		<category><![CDATA[sprint]]></category>
		<category><![CDATA[sprintometer]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=32</guid>
		<description><![CDATA[On my endeavor to find the perfect SCRUM project management tool I came across a freeware option named “Sprintometer”. It is not entirely free as it sounds but the options it gives to a manager for free is quite outstanding. The application can be downloaded from their website { sprintometer.com } for free.
Sprintometer support project [...]]]></description>
			<content:encoded><![CDATA[<p>On my endeavor to find the perfect SCRUM project management tool I came across a freeware option named “Sprintometer”. It is not entirely free as it sounds but the options it gives to a manager for free is quite outstanding. The application can be downloaded from their website { sprintometer.com } for free.</p>
<p>Sprintometer support project mangement in both XP and SCRUM methodology. Once you create a project it first of all asks the way the project is going to be managed. Then onward a product backlog can be prepared with stories and tasks assigned to it. Each task then can be assigned to a developer or a coder or a tester.</p>
<p>On the basis of the project specification the application itself generated some very useful charts that give the manager a good understanding about where the project is actually heading. Some of these charts are -</p>
<ul>
<li><strong>Track Chart: </strong>Tracks the amount of work done and the amount of work remaining through a line graph.</li>
<li><strong>Scope Chart:</strong> Shows in hour(s) the amount of work left against a story.</li>
<li><strong>Resource and Budget Chart:</strong> A matrix showing the resource and cost both story-wise and day-wise</li>
<li><strong>Story Readiness Chart: </strong>Shows how much closer to completion a story is through a table.</li>
<li><strong>Summary Report:</strong> Gives a overall report about the story in terms of work done, remaining and days left.</li>
<li><strong>Workload Report:</strong> This shows the amount of workload taken on by each project team members.</li>
</ul>
<p>From a project manger perspective it gives me a complete hold on where my project is heading. But the only thing it lacks is integration of team members to give their inputs directly to the system. Hope they are working on it and will be made available to the freeware version in near future :p</p>
<p>take care,</p>
<p><em><strong>- thephpx</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/08/06/sprintometer-as-a-scrum-management-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compress PNG files while retaining quality</title>
		<link>http://www.thephpx.com/2009/08/02/compreess-png-files-while-retaining-quality/</link>
		<comments>http://www.thephpx.com/2009/08/02/compreess-png-files-while-retaining-quality/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 02:35:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[crush]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=22</guid>
		<description><![CDATA[Most of today&#8217;s site uses PNG images due to use of transparencies. While they give a fine solution to the transparency problem with finer edge but it also brings about page load time issues.
To solve this problem i recently came across a PNG file compression utility.  This tiny utility is hosted on Source Forge and [...]]]></description>
			<content:encoded><![CDATA[<p>Most of today&#8217;s site uses PNG images due to use of transparencies. While they give a fine solution to the transparency problem with finer edge but it also brings about page load time issues.</p>
<p>To solve this problem i recently came across a PNG file compression utility.  This tiny utility is hosted on Source Forge and can be downloaded from <a title="PNG Compresser" href="http://sourceforge.net/project/showfiles.php?group_id=1689&amp;package_id=6641&amp;release_id=100821" target="_blank" onclick="pageTracker._trackPageview('/outgoing/sourceforge.net/project/showfiles.php?group_id=1689_amp_package_id=6641_amp_release_id=100821&amp;referer=');">here</a>. This utility claims to have compressed PNG files upto 50%.</p>
<p>Though the utility is somewhat crude and runs in command prompt but there is a nifty post about how to call it from the windows shell.</p>
<p>For the shell add-on you may visit the following <a title="PNG Compress port to windows shell" href="http://www.cyber-knowledge.net/blog/2006/12/01/compress-your-png-files-up-to-50-no-quality-loss/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.cyber-knowledge.net/blog/2006/12/01/compress-your-png-files-up-to-50-no-quality-loss/?referer=');">post</a>.</p>
<p>take care,</p>
<p><em><strong>- thephpx</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/08/02/compreess-png-files-while-retaining-quality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Zen-Environment for WAMP development</title>
		<link>http://www.thephpx.com/2009/08/01/my-zen-environment-for-wamp-development/</link>
		<comments>http://www.thephpx.com/2009/08/01/my-zen-environment-for-wamp-development/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 14:53:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[portable-smtp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.thephpx.com/?p=12</guid>
		<description><![CDATA[Hello everyone,
Every developer has there very own zen settings so do i   . Today I am going to writing about the stuffs I use while I am at development. If you have any better alternatives or suggestions to these applications please feel free to come forward  
My preferred application development platform includes [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>Every developer has there very own zen settings so do i <img src='http://www.thephpx.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Today I am going to writing about the stuffs I use while I am at development. If you have any better alternatives or suggestions to these applications please feel free to come forward <img src='http://www.thephpx.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My preferred application development platform includes the following -</p>
<p><strong>Local Work-Station/Laptop:</strong></p>
<ul>
<li><a title="WAMP Server for windows apache mysql php" href="http://www.wampserver.com/en/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.wampserver.com/en/?referer=');">WAMP</a> &#8211; Quick fix windows apache mysql and php server setup</li>
<li><a title="Free SMTP Server" href="http://www.softstack.com/freesmtp.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.softstack.com/freesmtp.html?referer=');">Free SMTP</a> &#8211; my very own SMTP server</li>
<li><a title="TortoiseSVN Subversion repository management tool" href="http://www.tortoisesvn.net/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.tortoisesvn.net/?referer=');">TortoiseSVN</a> &#8211; my personal undo</li>
<li><a title="SQLyog MySQL database management tool" href="http://www.webyog.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.webyog.com/?referer=');">SQLyog</a> &#8211; for MySQL database management</li>
<li><a title="Free FTP management tool" href="http://www.filezilla-project.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.filezilla-project.org/?referer=');">FileZilla</a> &#8211; for FTP management</li>
<li><a title="PHP Development tool" href="http://www.eclipse.org/pdt/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.eclipse.org/pdt/?referer=');">EclipsePDT</a> &#8211; My PHP IDE</li>
</ul>
<p><strong>Central Repository Server Applications:</strong></p>
<ul>
<li><a title="WAMP Server for windows apache mysql php" href="http://www.wampserver.com/en/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.wampserver.com/en/?referer=');">WAMP</a> &#8211; for basic windows, apache, mysql, php server on central repository</li>
<li><a title="Free SMTP Server" href="http://www.softstack.com/freesmtp.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.softstack.com/freesmtp.html?referer=');">Free SMTP</a> -  for SMTP server on the central repository</li>
<li><a title="SSH and Telnet Server" href="http://www.kpym.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.kpym.com/?referer=');">KpyM Telnet/SSH Server</a> &#8211; for SSH access to my central repository</li>
<li><a title="SVN Server and repository management tool" href="http://www.visualsvn.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.visualsvn.com/?referer=');">VisualSVN</a> &#8211; for SVN repository server management at central repository</li>
</ul>
<p>That is the whole host of applications that are involved in my development process which I find very helpful and agile. I work on two-stage development, my local workstation/laptop and then to my central repository where I host my SVN repositories and also live demos.</p>
<p>The two stage method has so far proven extreamly helpful, specially if you have a VPS account where you are at your will to install applications.</p>
<p>I hope this one helps you setup your zen environment :p.</p>
<p>take care,</p>
<p><em><strong>- thephpx</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/08/01/my-zen-environment-for-wamp-development/feed/</wfw:commentRss>
		<slash:comments>0</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>admin</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[<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>
]]></content:encoded>
			<wfw:commentRss>http://www.thephpx.com/2009/07/31/thephpx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
