<?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>Web Developer Blog</title>
	<atom:link href="http://blog.uk-webdeveloper.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.uk-webdeveloper.co.uk</link>
	<description>Tips &#38; info related to web development</description>
	<lastBuildDate>Thu, 20 May 2010 12:30:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Prevent Image Caching</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/prevent-image-caching/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/prevent-image-caching/#comments</comments>
		<pubDate>Thu, 20 May 2010 12:30:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[prevent]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=279</guid>
		<description><![CDATA[Browser image caching was causing me a problem today.
When a user of a client site uploads a profile image, it intentionally overwrites the old image. However, when viewing the profile page, the old image is shown unless you refresh the page.
Preventing browser image caching
The solution was quite simple. In order to force the browser to [...]]]></description>
			<content:encoded><![CDATA[<p>Browser<!-- Prevent Image Caching --> image caching was causing me a problem today.<br />
When a user of a client site uploads a profile image, it intentionally overwrites the old image. <!-- Prevent Image Caching -->However, when viewing the profile page, the old image is shown unless you refresh the page.</p>
<h2>Preventing browser image caching</h2>
<p>The solution was quite simple. In order to force the browser to fetch the image from the server, I add a random number to a querystring at the end of the image name. Example:</p>
<p style="margin-left:20px;color:#000080;">
<img src="<?php echo 'image.jpg?u='.rand(10,1000);?> title=&#8221;title&#8221; />
</p>
<p>A simple solution to preventing image caching.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/prevent-image-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Multidimensional Arrays</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/php-web-development/php-multidimensional-arrays/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/php-web-development/php-multidimensional-arrays/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 20:42:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[multidimensional]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=263</guid>
		<description><![CDATA[Multidimensional arrays are arrays which contain arrays and each of those may also contain arrays. There is no limit to the number or level of sub-arrays.


]]></description>
			<content:encoded><![CDATA[<p><!-- Multidimensional arrays --><strong>Multidimensional arrays</strong> are <strong>arrays</strong> which contain <strong>arrays</strong> and each of those may also contain arrays. There is no limit to the number or level of sub-arrays<!-- Multidimensional arrays -->.<br />
<code><!-- Multidimensional arrays --><br />
<span style="color:#000080"><br />
<?php<br />
$stoves = array(<br />
        0=>array('Bronze',<br />
		'elements'=>array('4 rings', 'oven'),<br />
		),<br />
	1=>array('Silver',<br />
		'elements'=>array('4 rings', 'oven', 'grill'),<br />
		)<br />
?><br />
</code></span><!-- Multidimensional arrays --><br />
End of <strong>Multidimensional Arrays</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/php-web-development/php-multidimensional-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Developer Interview Questions</title>
		<link>http://blog.uk-webdeveloper.co.uk/job-hunting/web-developer-interview-questions/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/job-hunting/web-developer-interview-questions/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 08:54:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Job hunting]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[questions]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=240</guid>
		<description><![CDATA[Most of us know what general interview questions to expect, but sometimes we may not be as prepared for interview questions as we think we are. So, here are a few interview questions that I have been asked whilst at interviews for web developer roles:

How do you keep up to date with trends and changes [...]]]></description>
			<content:encoded><![CDATA[<p>Most of us know what general <strong>interview questions</strong> to expect, <!-- Web Developer Interview Questions -->but sometimes we may not be as prepared for <strong>interview questions</strong> as we think we are. So, here are a few <strong>interview questions</strong> that I have been asked whilst at interviews for <strong>web developer</strong><!-- Web Developer Interview Questions --> roles:</p>
<ol>
<li>How do you keep up to date with trends and changes in web development?</li>
<li>Can you show us some example code?</li>
<li>What is the most complex application you have built?</li>
<li>What is <a href="http://www.owasp.org/index.php/Cross-site_Scripting_(XSS)" title="Cross Site Scripting">XSS</a>?</li>
<li>How would you prevent <a href="http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/what-is-mysql-injection" title="MySQL injection">MySQL injection</a>?</li>
<li>What can you tell me about CSS sprites?</li>
<li>What do you know about the <a title="Info about CSS Box Model" href="http://blog.uk-webdeveloper.co.uk/web-development/internet-explorer-and-css-box-model/">CSS Box Model</a>?</li>
<li>What is a <a title="recursive functions explained" href="http://blog.uk-webdeveloper.co.uk/web-development/what-are-recursive-functions/">recursive function</a>?</li>
<li>Do you know what <a title="Multidimensional arrays" href="http://blog.uk-webdeveloper.co.uk/web-development/php-web-development/php-multidimensional-arrays">multi-dimensional arrays</a> are?</li>
</ol>
<p>These are just a few sample <strong>web developer interview questions</strong><!-- Web Developer Interview Questions --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/job-hunting/web-developer-interview-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joining Tables: MySQL Join</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/joining-tables-mysql-join/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/joining-tables-mysql-join/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 06:40:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[joining]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=204</guid>
		<description><![CDATA[

MySQL Join Tables


The MySQL JOIN command allows you to acquire/manipulate data from more than one table in a single query statement.

MySQL JOIN commands can be used in SELECT, UPDATE and DELETE statements.

However, MySQL JOIN commands use a lot of database resources as they need conditional matches across all of the tables.

The Simple MySQL Join
This is [...]]]></description>
			<content:encoded><![CDATA[<p><!-- MySQL JOIN --></p>
<div class="wp-caption alignright" style="width: 185px"></p>
<div class="mceTemp">
<dl id="attachment_226" class="wp-caption alignright" style="width: 185px;">
<dt class="wp-caption-dt"><a rel="attachment wp-att-226" href="http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/joining-tables-mysql-join/attachment/mysql/"><img class="size-full wp-image-226" title="MySQL" src="http://blog.uk-webdeveloper.co.uk/wp-content/uploads/2010/03/mysql.gif" alt="MySQL" width="175" height="93" /></a><p class="wp-caption-text">MySQL</p></div>
</dt>
<dd class="wp-caption-dd">MySQL Join Tables</dd>
</dl>
</div>
<p>The <strong>MySQL JOIN</strong> command allows you to acquire/manipulate data from more than one table in a single query statement.<br />
<!-- MySQL JOIN --><br />
<strong>MySQL JOIN</strong> commands can be used in SELECT, UPDATE and DELETE statements.</p>
<p><!-- MySQL JOIN --><br />
However, <strong>MySQL JOIN</strong> commands use a lot of database resources as they need conditional matches across all of the tables.</p>
<p><!-- MySQL JOIN --></p>
<h2>The Simple MySQL Join</h2>
<p>This is the easiest of the <strong>Join</strong> queries. With this <strong>JOIN</strong> query you are basically conducting two separate queries on two related tables, but <strong>joining</strong> them into one query. The WHERE condition is used to connect corresponding results.</p>
<p>The syntax is as follows:<br />
<span style="color: 000080;"><code>SELECT table_a.id, table_a.name, table_b.meals  FROM table_a JOIN table_b WHERE table_a.name = table_b.name</code></span><br />
<!-- MySQL JOIN --><br />
In the <strong>join</strong> example above, you may use a comma in place of the word &#8216;<strong>JOIN</strong>&#8216;.</p>
<p><!-- MySQL left join --></p>
<h2 style="margin-top: 2em;">The MySQL LEFT Join</h2>
<div id="attachment_227" class="wp-caption alignright" style="width: 185px"><a rel="attachment wp-att-227" href="http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/joining-tables-mysql-join/attachment/jointables/"><img class="size-full wp-image-227" title="Join Tables" src="http://blog.uk-webdeveloper.co.uk/wp-content/uploads/2010/03/jointables.jpg" alt="Join Tables with MySQL" width="175" height="132" /></a><!-- MySQL left join --><p class="wp-caption-text">Join Tables with MySQL</p></div>
<p><!-- MySQL left join -->The <strong>LEFT JOIN</strong> is slightly more complicated that the simple <strong>join</strong>. By using a <strong>LEFT JOIN</strong>, as well as all records which match the WHERE condition, I also retrieve <em>all</em> the records from the first table (<strong>left</strong> of the <strong>join</strong>) which <em>do not</em> match the WHERE condition.<!-- MySQL left join --></p>
<p>The syntax is as follows:<!-- MySQL left join --><br />
<span style="color: 000080;"><code>SELECT table_a.id, table_a.name, table_b.meals  FROM table_a LEFT JOIN table_b ON table_a.name = table_b.name</code></span><br />
<!-- MySQL inner join --></p>
<h2 style="margin-top: 2em;">The MySQL Inner Join</h2>
<p><strong>INNER JOIN</strong> behaves in the same way as <strong>LEFT JOIN</strong> except that if no matches are found, no results are created.<!-- MySQL inner join --></p>
<p>The syntax is as follows:<br />
<span style="color: 000080;"><code>SELECT table_a.id, table_a.name, table_b.meals  FROM table_a INNER JOIN table_b WHERE table_a.name = table_b.name</code></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/joining-tables-mysql-join/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>htaccess AddType for Custom web page suffix</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/htaccess-addtype/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/htaccess-addtype/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 16:02:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[AddType]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htacces]]></category>
		<category><![CDATA[MIME]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=188</guid>
		<description><![CDATA[A week or so ago, another developer showed me the Nectar Points website (www.nectar.com) and pointed out that the webpages appear to have a custom suffix &#8211; in this case .nectar
So, how did they do it?
It appears that the website is on an Apache server, my guess is that they used the .htaccess &#8216;AddType&#8217; directive.
The [...]]]></description>
			<content:encoded><![CDATA[<p><!-- htaccess AddType -->A week or so ago, another developer showed me the Nectar Points website (www.nectar.com) and pointed out that the webpages appear to have a custom suffix &#8211; in this case <em>.nectar</em></p>
<p><!-- htaccess AddType -->So, how did they do it?</p>
<p>It appears that the website is on an Apache server, my guess is that they used the <strong>.htaccess &#8216;AddType&#8217;</strong> directive.<!-- htaccess AddType --></p>
<h2>The AddType Directive</h2>
<p>The <strong>AddType</strong> directive allows you to specify what MIME type should be reported for specified file suffixes. This MIME type will then be used by the browser when serving up a web page having the specified suffix.</p>
<p><!-- htaccess AddType -->The syntax:<br/><span style="margin-top:5px; color:#000080">AddType mime-type file-extension</span></p>
<p><!-- htaccess AddType -->So, if I decide to change the suffix of any of my PHP files to &#8216;.beer&#8217;, then I will use this in the .htaccess file:<br/><span style="color:#000080">AddType application/x-httpd-php .beer</span></p>
<p><!-- htaccess AddType -->Now, <em>pagename.beer</em> will be treated by the browser like any other PHP file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/htaccess-addtype/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What is MySQL Injection?</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/what-is-mysql-injection/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/what-is-mysql-injection/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 17:41:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[injection]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql_real_escape_string()]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=251</guid>
		<description><![CDATA[MySQL injection occurs when someone unauthorised attempts to run an MySQL statement on your database. This will normally take the form of inserting a MySQL statement where you would normally expect some user input &#8211; maybe their username.
MySQL Injection Prevention
There is a PHP function which can be used to prevent MySQL injection attacks:
mysql_real_escape_string($variable)
The mysql_real_escape_string() makes [...]]]></description>
			<content:encoded><![CDATA[<p><strong>MySQL injection</strong> occurs when someone unauthorised attempts to run an MySQL statement on your database.<!-- MySQL injection --> This will normally take the form of inserting a MySQL statement where you would normally expect some user input &#8211; maybe their username<!-- MySQL injection -->.</p>
<h2>MySQL Injection Prevention</h2>
<p>There is a PHP function which can be used to prevent <strong>MySQL injection</strong> attacks<!-- MySQL injection -->:</p>
<p><code><span style="color:#000080">mysql_real_escape_string($variable)</span></code></p>
<p>The <strong>mysql_real_escape_string()</strong> makes the string safe from <strong>MySQL injection</strong> by escaping any <strong>injection</strong> code in the data which is to be used in the <strong>MySQL</strong> query<!-- MySQL injection -->.</p>
<p><strong>MySQL injection</strong> attempts normally have the single quote character(&#8216;). <strong>mysql_real_escape_string()</strong> inserts a backslash in front of it to escape it<!-- MySQL injection -->.  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/mysql-web-development/what-is-mysql-injection/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What are PHP recursive functions</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/what-are-recursive-functions/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/what-are-recursive-functions/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 16:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[recursive]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=185</guid>
		<description><![CDATA[Recursive functions are functions which call themselves. They are particularly useful when working with multi-dimensional arrays. However, using recursive functions should be avoided if the function is likely to be called over 200 times, as it may kill the script.

Here is a very basic example of how one could use a recursive function in PHP:

&#60;?php

# [...]]]></description>
			<content:encoded><![CDATA[<p><!-- php recursive function --><strong>Recursive functions</strong> are functions which call themselves. They are particularly useful when working with multi-dimensional arrays. However, using<strong> recursive functions</strong> should be avoided if the function is likely to be called over 200 times, as it may kill the script.<br />
<!-- php recursive function --><br />
Here is a very basic example of how one could use a <strong>recursive function</strong> in PHP:</p>
<div style="margin-top:1em; color:#000080">
<p>&lt;?php</p>
<p><!-- php recursive function --><br />
# This function iterates over the main array<br />
# It checks each value and if not an array adds to variable<br />
# If one of the values is an array the function calls itself<br />
# and passes that sub array to itself (the function)<br />
<!-- php recursive function --><br />
function total($numbers)<br />
{<br />
$total = FALSE; // initialise variable<br />
foreach ($numbers as $number) {<br />
if(is_array($number)) { //is the value an array<br />
$total += total($number); //calls itself &amp; passes sub array<br />
} else { // not an array<br />
$total += $number; // add values to variable<br />
}<br />
}<br />
return $total;<br />
}<br />
<!-- php recursive function --><br />
$numberlist = array(10, 20, 5,<br />
array(5, 2, 3)<br />
);<br />
$result = total($numberlist); // pass arrays to function<br />
echo &#8220;Total  = $result\n&#8221;;<br />
?&gt;</p>
</div>
<p><!-- php recursive function --><br />
This example is a very basic <strong>recursive function</strong>. <!-- php recursive function --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/what-are-recursive-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Codeigniter</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/what-is-codeigniter/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/what-is-codeigniter/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 11:56:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=148</guid>
		<description><![CDATA[ 
CodeIgniter &#8211; created by EllisLabs and first released in 2006, CodeIgniter is a freely available MVC web application framework used for developing websites using PHP.
CodeIgniter ships with a large library commonly used OOP classes, enabling the developer to call them rather that using time creating her own. When compared to other similar MVC frameworks, [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong></p>
<div id="attachment_153" class="wp-caption alignright" style="width: 147px"><strong><strong><a rel="attachment wp-att-153" href="http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/what-is-codeigniter/attachment/codeigniter/"><img class="size-full wp-image-153" title="codeigniter" src="http://blog.uk-webdeveloper.co.uk/wp-content/uploads/2009/12/codeigniter.png" alt="CodeIgniter" width="137" height="189" /></a></strong></strong><p class="wp-caption-text">CodeIgniter</p></div>
<p><strong>CodeIgniter</strong> &#8211; created by EllisLabs and first released in 2006<strong>, CodeIgniter</strong> is a freely available MVC web application framework used for developing websites using PHP.</p>
<p><strong>CodeIgniter</strong> ships with a large library commonly used OOP classes, enabling the developer to call them rather that using time creating her own. When compared to other similar MVC frameworks, <strong>CodeIgniter</strong> is said to be:</p>
<p style="margin-left:1em;">&#8220;..faster, lighter and the least like a framework.&#8221;  <span style="font-size:11px;"><em>Rasmus Lerdorf 2008</em></span></p>
<h2><strong>Benefits of CodeIgniter</strong></h2>
<ul>
<li>Get started quickly</li>
<li>No need to install other packages</li>
<li>No need for mass configuration</li>
<li>Compatible with PHP 4 &amp; 5</li>
<li>Detailed user guide</li>
<li>Enables faster cleaner development</li>
<li>Easy to extend by adding your own classes</li>
<li>It&#8217;s OpenSource</li>
<li>MVC architecture allows for code separation</li>
</ul>
<p>More information about CodeIgniter is available from <a title="CodeIgniter" href="http://www.CodeIgniter.com" target="_blank">CodeIgniter.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/what-is-codeigniter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CodeIgniter base_url: Make it dynamic</title>
		<link>http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/codeigniter-base_url/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/codeigniter-base_url/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 11:26:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[base]]></category>
		<category><![CDATA[base url]]></category>
		<category><![CDATA[base_url]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://blog.uk-webdeveloper.co.uk/?p=160</guid>
		<description><![CDATA[
CodeIgniter Base URL
When you install the CodeIgniter framework on your server, the base URL and certain other settings are automatically configured on install. These settings are relevant to the server you are installing on. The base url is set to the domain you are installing CodeIgniter on (eg. www.uk-webdeveloper.co.uk) and is called by a method [...]]]></description>
			<content:encoded><![CDATA[<p><!-- codeigniter base url --></p>
<h2>CodeIgniter Base URL</h2>
<p>When you install the <a href="http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/what-is-codeigniter/" target="_self"><strong>CodeIgniter</strong></a> framework on your server, the <strong>base URL</strong> and certain other settings are automatically configured on install. These settings are relevant to the server you are installing on. The <strong>base url</strong> is set to the domain you are installing <a href="http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/what-is-codeigniter/" target="_self"><strong>CodeIgniter</strong></a> on (eg. <a title="web developer" href="http://www.uk-webdeveloper.co.uk" target="_self">www.uk-webdeveloper.co.uk</a>) and is called by a method in my <em>class Start extends Controller</em> in this manner:<!-- codeigniter base url --></p>
<pre>function Start()
{
parent::Controller();
$this-&gt;load-&gt;helper('url');
$this-&gt;load-&gt;library('menu');
$this-&gt;load-&gt;library('menulower');
$this-&gt;load-&gt;library('banner');
<strong>$this-&gt;base = $this-&gt;config-&gt;item('base_url');
</strong>$this-&gt;css = $this-&gt;config-&gt;item('css');
}</pre>
<p><!-- codeigniter base url --><br />
As you can see from the method/function shown here, the <strong>base_url</strong> is located in the config file of your <strong>CodeIgniter</strong> installation.<br />
<!-- codeigniter base url --><br />
Now, as mentioned above, <strong>CodeIgniter</strong> sets the <strong>base_url </strong>on  install to that of the domain it is installed to. So what happens when you move the whole application to another domain? It may stop functioning.<!-- codeigniter base url --></p>
<h2>The Base URL solution</h2>
<p>The solution is quite simple.</p>
<p>1. Locate and open your config file (usually at system/application/config/config.php)</p>
<p>2. Find this line:<br />
$config['base_url']    = &#8216;http://www.yourdomain.co.uk&#8217;</p>
<p>3. Replace that line with<br />
$config['base_url']    = &#8216;http://&#8217;.$_SERVER['HTTP_HOST']</p>
<p>4. Save the file.<!-- codeigniter base url --></p>
<p>Now wherever you move the application to, it should still work as expected.<br />
<!-- codeigniter base url --><br />
codeigniter base url</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/web-development/codeigniter/codeigniter-base_url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start with HTML5</title>
		<link>http://blog.uk-webdeveloper.co.uk/general/start-with-html5/</link>
		<comments>http://blog.uk-webdeveloper.co.uk/general/start-with-html5/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 21:56:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jez007.wordpress.com/?p=146</guid>
		<description><![CDATA[HTML5 
Getting started with HTML5 is very easy.
HTML 5 is compatible with the XHTML syntax of self-closing tags, so, if you already use HTML5 then making the switch will be easy. Other XHTML features inherited by HTML5 include lowercase tags and double quoted attributes (eg, title=&#8221;the title&#8221;)
The Doctype declaration in HTML5 is so much easier [...]]]></description>
			<content:encoded><![CDATA[<p><strong>HTML5 </strong></p>
<p>Getting started with HTML5 is very easy.</p>
<p>HTML 5 is compatible with the XHTML syntax of self-closing tags, so, if you already use HTML5 then making the switch will be easy. Other XHTML features inherited by HTML5 include lowercase tags and double quoted attributes (eg, title=&#8221;the title&#8221;)</p>
<p>The Doctype declaration in HTML5 is so much easier to remember when compared to XHTML:</p>
<pre>
<pre>&lt;!DOCTYPE html&gt;
</pre>
</pre>
<p>There&#8217;s a lot more to HTML5 and I will update this entry as I get more info.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.uk-webdeveloper.co.uk/general/start-with-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
