<?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>Rory Hansen - Web and mobile app development, affiliate marketing, making money online, and entrepreneurship &#187; code igniter</title>
	<atom:link href="http://www.roryhansen.ca/category/web-development/code-igniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.roryhansen.ca</link>
	<description>Affiliate marketing, Internet marketing, web development, and small business ideas.</description>
	<lastBuildDate>Wed, 02 Nov 2011 00:49:42 +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>My first CodeIgniter site launched! www.PremierLeagueShirts.com</title>
		<link>http://www.roryhansen.ca/2008/10/31/my-first-codeigniter-site-launched-wwwpremierleagueshirtscom/</link>
		<comments>http://www.roryhansen.ca/2008/10/31/my-first-codeigniter-site-launched-wwwpremierleagueshirtscom/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 00:38:35 +0000</pubDate>
		<dc:creator>Rory</dc:creator>
				<category><![CDATA[affiliate marketing]]></category>
		<category><![CDATA[code igniter]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.roryhansen.ca/2008/10/31/my-first-codeigniter-site-launched-wwwpremierleagueshirtscom/</guid>
		<description><![CDATA[I first mentioned CodeIgniter back in February 2007 as something that really excited me, but it took over a year and a half for me to actually use it! Well, after a 2-day programming blitz, I launched my first CodeIgniter website yesterday. It&#8217;s hosted on the keyword domain www.PremierLeagueShirts.com and is an affiliate site targetting those [...]]]></description>
			<content:encoded><![CDATA[<p>I first mentioned <a href="http://www.codeigniter.com" rel="nofollow">CodeIgniter</a> back in February 2007 as <a href="http://www.roryhansen.ca/2007/02/09/3-things-im-excited-about-yahoo-pipes-code-igniter-and-facebook-api/">something that really excited me</a>, but it took over a year and a half for me to actually use it!</p>
<p>Well, after a 2-day programming blitz, I launched my first CodeIgniter website yesterday. It&#8217;s hosted on the keyword domain <a href="http://www.premierleagueshirts.com/">www.PremierLeagueShirts.com</a> and is an affiliate site targetting those looking for English Premier League jerseys. While still under heavy construction, the primary features are now available for use. The remaining changes will mostly be cosmetic and UI-related.</p>
<p>Here are some of the features that I programmed into <a href="http://www.premierleagueshirts.com/">www.PremierLeagueShirts.com</a>:</p>
<ul>
<li>SEO-Friendly URLS - Each and every URL is search engine friendly. Take for example some of these URLS:
<ul>
<li><a href="http://www.premierleagueshirts.com/store/subcategory/Shop_By_Player/Beckham_David">http://www.premierleagueshirts.com/store/subcategory/Shop_By_Player/Beckham_David</a></li>
<li><a href="http://www.premierleagueshirts.com/store/subcategory/Teamwear/Womens">http://www.premierleagueshirts.com/store/subcategory/Teamwear/Womens</a></li>
</ul>
</li>
<li>Product Search &#8211; While still quite simplistic, will return a list of products which matches the user&#8217;s query.</li>
<li>Completely Database-Driven: All content is stored in the Premier League Shirts database. No real-time webservice calls to the main affiliate site which may slow down page loads.</li>
</ul>
<p>And what&#8217;s left to come?</p>
<ul>
<li>Improved GUI &#8211; Yes, the UI is plain. But my goal was to get the site out there and crawled by the major search engines. Now that that&#8217;s done, I&#8217;ll see what can be done about the look-and-feel of the site.</li>
<li>Improved Search &#8211; The site search currently only looks at the Product Name, and not the Brand, Category, or Description. This will be looked into.</li>
<li>Stats &#8211; Record what products are being looked at, what&#8217;s being searched for, and store that all in the database. Spit that out onto new pages on the site for further crawling by Google.</li>
<li>Additional Content &#8211; What is on the site right now is strictly affiliate products and their descriptions. Obviously Google may not like that so much, so will have to look at additional sources of related content.</li>
</ul>
<p>So, what do you think so far? Since this is my first forray into the world of CodeIgniter, I&#8217;m please with what I&#8217;ve accomplished over the last 2 days.</p>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.roryhansen.ca/2008/10/31/my-first-codeigniter-site-launched-wwwpremierleagueshirtscom/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CodeIgniter Blank Page Fix: Blank webpage when setting up CodeIgniter, PHP, MySQL, and Apache</title>
		<link>http://www.roryhansen.ca/2008/10/29/fix-blank-webpage-problems-when-first-setting-up-code-igniter-php-mysql-and-apache/</link>
		<comments>http://www.roryhansen.ca/2008/10/29/fix-blank-webpage-problems-when-first-setting-up-code-igniter-php-mysql-and-apache/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 06:31:07 +0000</pubDate>
		<dc:creator>Rory</dc:creator>
				<category><![CDATA[code igniter]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.roryhansen.ca/2008/10/29/fix-blank-webpage-problems-when-first-setting-up-code-igniter-php-mysql-and-apache/</guid>
		<description><![CDATA[Today, I created my first website using the Code Igniter PHP framework and, oh boy, do I like it a lot more than Ruby on Rails. But I&#8217;ll dig into that further in a future post. The purpose of this post is to shed some light on a problem that I wracked my brain over [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I created my first website using the Code Igniter PHP framework and, oh boy, do I like it a lot more than Ruby on Rails. But I&#8217;ll dig into that further in a future post.</p>
<p>The purpose of this post is to shed some light on a problem that I wracked my brain over for a few hours last night.</p>
<p>The problem: <em>After installing Apache, PHP, and MySQL and configuring the Code Igniter framework, you get a blank web page when testing your first controller, model, and view.</em></p>
<p>What I discovered were two issues that, when combined, create the perfect storm of an installation problem:</p>
<ol>
<li>First, <u>MySQL is no longer enabled by default with PHP 5</u>. Says the PHP website of MySQL in PHP 5:<br />
<blockquote><p>MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH.</p></blockquote>
<p>It&#8217;s been a LONG time since I&#8217;ve programmed in PHP let alone installed PHP, so this was news to me. Anyway, if check out the <a href="http://ca3.php.net/manual/en/mysql.installation.php">MySQL installation notes</a> on the PHP website if you need help enabling MySQL.  </li>
<li>Unfortunately, that was the easy part. Once I had an error message to work with, Google lead me to the PHP website, and I was in the clear. But, for the longest time, I wasn&#8217;t even getting an error page. Remember, all I was getting was a blank HTML page. So what was the cause? Code Igniter&#8230;</li>
<li>Using some creatively placed <em>die()</em> calls, I found out that the application was dying when trying to connect to the database. (Previous to this, I had already double- and triple-checked my MySQL username and password in the Code Igniter configuration file, and had even tried out alternate accounts, like my MySQL root account.)What I found out was that <u>the MySQL drivers in Code Igniter were suppressing errors when attempting database connections</u>.</li>
</ol>
<p>This is what the code looks like in the Code Igniter mysql_driver.php file:<br />
<code><br />
function db_connect()<br />
{<br />
   if ($this-&gt;port != '')<br />
   {<br />
      $this-&gt;hostname .= ':'.$this-&gt;port;<br />
   }<br />
   return @mysql_connect($this-&gt;hostname, $this-&gt;username, $this-&gt;password, TRUE);<br />
}<br />
</code>The &#8220;@&#8221; symbol before the mysql_connect() function call supresses any errors that may be returned. It is that symbol that wasted a good 2 hours of my life.Anyway, after I removed the &#8220;@&#8221; symbol from the code and re-tested my web application, PHP spit out the error message that I should have been presented with hours ago, and I was well on my way to fixing the problem.<br />
 If you&#8217;re experiencing the same problem that I was, I hope this helps you correct it faster than I did! Best of luck.</p>
<p>Oh, and did I mention how much I prefer Code Igniter over Ruby on Rails? It&#8217;s messier, but with my C and Java background, it makes more sense than Ruby and Ruby on Rails does!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roryhansen.ca/2008/10/29/fix-blank-webpage-problems-when-first-setting-up-code-igniter-php-mysql-and-apache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

