<?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>Mr Portman: primary school teacher, web developer... school web guru</title>
	<atom:link href="http://mrportman.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://mrportman.co.uk</link>
	<description>Primary school teacher + web developer = school web guru! Includes articles on primary education, particularly ICT, some web development notes and a few games for kids.</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:02:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Transfer mysql database to a new server using phpMyAdmin</title>
		<link>http://mrportman.co.uk/transfer-mysql-database-to-a-new-server-using-phpmyadmin/</link>
		<comments>http://mrportman.co.uk/transfer-mysql-database-to-a-new-server-using-phpmyadmin/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 09:39:28 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=867</guid>
		<description><![CDATA[Assuming you&#8217;re inside phpMyAdmin, select the database you want to move. Hit the&#8217;Export&#8217; tab. &#8216;Select all&#8217; to export every table. Make sure the &#8216;Structure&#8217; and &#8216;Data&#8217; boxes are ticked. Select &#8216;Drop table if exists&#8217;. Select &#8216;Save to file&#8217; at the bottom, and change the name if necessary. Hit &#8216;Go&#8217;.]]></description>
			<content:encoded><![CDATA[<ul class="numbered">
<li>Assuming you&#8217;re inside phpMyAdmin, select the database you want to move.</li>
<li>Hit the&#8217;Export&#8217; tab.</li>
<li>&#8216;Select all&#8217; to export every table.</li>
<li>Make sure the &#8216;Structure&#8217; and &#8216;Data&#8217; boxes are ticked.</li>
<li>Select &#8216;Drop table if exists&#8217;.</li>
<li>Select &#8216;Save to file&#8217; at the bottom, and change the name if necessary.</li>
<li>Hit &#8216;Go&#8217;.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/transfer-mysql-database-to-a-new-server-using-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change a CSS style using jQuery</title>
		<link>http://mrportman.co.uk/change-a-css-style-using-jquery/</link>
		<comments>http://mrportman.co.uk/change-a-css-style-using-jquery/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:39:29 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=775</guid>
		<description><![CDATA[Say you&#8217;ve got this: &#60;div id=&#8221;divname&#8221;&#62;&#60;/div&#62; and you hide it in the CSS using: #divname {display: none;} To show it using jQuery, simple action this: $(&#8220;#divname).css(&#8220;display&#8221;,&#8221;block&#8221;); Simples!]]></description>
			<content:encoded><![CDATA[<p>Say you&#8217;ve got this:</p>
<blockquote><p>&lt;div id=&#8221;divname&#8221;&gt;&lt;/div&gt;</p></blockquote>
<p>and you hide it in the CSS using:</p>
<blockquote><p>#divname {display: none;}</p></blockquote>
<p>To show it using jQuery, simple action this:</p>
<blockquote><p>$(&#8220;#divname).css(&#8220;display&#8221;,&#8221;block&#8221;);</p></blockquote>
<p>Simples!</p>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/change-a-css-style-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check url using Javascript</title>
		<link>http://mrportman.co.uk/747/</link>
		<comments>http://mrportman.co.uk/747/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 15:28:31 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=747</guid>
		<description><![CDATA[Ages ago I commented somewhere and left a link to my site within the comment which included the ID of a div called learning_resources (http://mrportman.co.uk/#learning_resources). Since then the div no longer exists, but I wanted to offer those visitors the download still. You can&#8217;t do anything with PHP because anything with a # isn&#8217;t passed [...]]]></description>
			<content:encoded><![CDATA[<p>Ages ago I commented somewhere and left a link to my site within the comment which included the ID of a div called <em>learning_resources</em> (http://mrportman.co.uk/#learning_resources). Since then the div no longer exists, but I wanted to offer those visitors the download still.</p>
<p>You can&#8217;t do anything with PHP because anything with a # isn&#8217;t passed to the server, so I had to resort to some Javascript and search the url:</p>
<blockquote><p>$(document).ready(function() {</p>
<p>$url = $(location).attr(&#8216;href&#8217;);<br />
$string = &#8220;learning&#8221;<br />
if ($url.search($string) == 24) {<br />
&lt;!&#8211; Do your thang here &#8211;&gt;<br />
}<br />
});</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/747/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search an XML file using preg_match</title>
		<link>http://mrportman.co.uk/search-an-xml-file-using-preg_match/</link>
		<comments>http://mrportman.co.uk/search-an-xml-file-using-preg_match/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 19:37:20 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=683</guid>
		<description><![CDATA[This excellent Class loads the XML, then the following script will search. It isn&#8217;t the most efficient way of doing it, but will do for now. This particular script searches a BBC weather feed and will be used on the upcoming Web &#038; Pen site.]]></description>
			<content:encoded><![CDATA[<p>This excellent <a href="http://www.troywolf.com/articles/php/class_xml/">Class</a> loads the XML, then the following script will search. It isn&#8217;t the most efficient way of doing it, but will do for now.</p>
<blockquote><p><?php<br />
foreach ($x->data->RSS[0]->CHANNEL[0]->ITEM as $item) {</p>
<p>	if (preg_match(&#8220;/cloud/&#8221;, $item->TITLE[0]->_text)) {<br />
		// cloud<br />
    	echo &#8220;Weather in Norwich today: cloud&#8221;;<br />
	} elseif (preg_match(&#8220;/sunny intervals/&#8221;, $item->TITLE[0]->_text)) {<br />
		// sunny intervals<br />
		echo &#8220;Weather in Norwich today: sunny intervals&#8221;;<br />
	} elseif (preg_match(&#8220;/sunny/&#8221;, $item->TITLE[0]->_text)) {<br />
		// sunny<br />
		echo &#8220;Weather in Norwich today: sunny&#8221;;<br />
	} elseif (preg_match(&#8220;/snow/&#8221;, $item->TITLE[0]->_text)) {<br />
		// snow<br />
		echo &#8220;Weather in Norwich today: snow&#8221;;<br />
	} else {<br />
		echo &#8220;Weather feed error&#8221;;<br />
	}<br />
}<br />
?></p></blockquote>
<p>This particular script searches a BBC weather feed and will be used on the upcoming <a href="http://webandpen.co.uk">Web &#038; Pen</a> site.</p>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/search-an-xml-file-using-preg_match/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change default index page</title>
		<link>http://mrportman.co.uk/change-default-index-page/</link>
		<comments>http://mrportman.co.uk/change-default-index-page/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 19:28:36 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=677</guid>
		<description><![CDATA[Lob this in the .htaccess file: DirectoryIndex holding.html]]></description>
			<content:encoded><![CDATA[<p>Lob this in the .htaccess file:</p>
<blockquote><p>DirectoryIndex holding.html</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/change-default-index-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A records / MX records</title>
		<link>http://mrportman.co.uk/a-records-mx-records/</link>
		<comments>http://mrportman.co.uk/a-records-mx-records/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 09:39:10 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=632</guid>
		<description><![CDATA[Having just fired off instructions to everyone I work with never to buy a domain name from Fast Hosts, here&#8217;s how to set up the A records and MX records: First, an A record for the root: Host name: [no name] Points to: xx.xx.xx.xx Next, an A record for www: Host name: www Points to: [...]]]></description>
			<content:encoded><![CDATA[<p>Having just fired off instructions to everyone I work with never to buy a domain name from Fast Hosts, here&#8217;s how to set up the A records and MX records:</p>
<p>First, an A record for the root:</p>
<blockquote><p>Host name: [no name] Points to: xx.xx.xx.xx</p></blockquote>
<p>Next, an A record for www:</p>
<blockquote><p>Host name: www Points to: xx.xx.xx.xx</p></blockquote>
<p>Then, an A record for email:</p>
<blockquote><p>Host name: mail Points to: xx.xx.xx.xx</p></blockquote>
<p>Finally, the MX record needs setting:</p>
<blockquote><p>Points to: mail.domainname.com Priority: 10</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/a-records-mx-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encode email address</title>
		<link>http://mrportman.co.uk/encode-email-address/</link>
		<comments>http://mrportman.co.uk/encode-email-address/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 16:20:05 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=628</guid>
		<description><![CDATA[No need for this with Expression Engine, but with other sites use: www.mailtoencoder.com &#8230;but use CSS to display a background image. In the < noscript> part, place an img tag to the same image &#8211; that way anyone with javascript turned off can still see the image.]]></description>
			<content:encoded><![CDATA[<p>No need for this with Expression Engine, but with other sites use: </p>
<p><a href="http://www.mailtoencoder.com/">www.mailtoencoder.com</a></p>
<p>&#8230;but use CSS to display a background image. In the < noscript> part, place an img tag to the same image &#8211; that way anyone with javascript turned off can still see the image.</p>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/encode-email-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting iPads/iPhones using PHP</title>
		<link>http://mrportman.co.uk/detecting-ipadsiphones-using-php/</link>
		<comments>http://mrportman.co.uk/detecting-ipadsiphones-using-php/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 19:36:18 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[detection]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=625</guid>
		<description><![CDATA[Lovely little script:]]></description>
			<content:encoded><![CDATA[<p>Lovely little script:</p>
<blockquote><p>
<?php<br />
if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad')) {</p>
<p>// iPhone video or whatever it is you want to show differently</p>
<p>} else {</p>
<p>// content for everyone else</p>
<p>}<br />
?></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/detecting-ipadsiphones-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase email quota using cPanel</title>
		<link>http://mrportman.co.uk/increase-email-quota-using-cpanel/</link>
		<comments>http://mrportman.co.uk/increase-email-quota-using-cpanel/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:25:24 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=617</guid>
		<description><![CDATA[Had a problem today &#8211; for some reason, whenever I went to increase the quota, it would just give an error. A quick Google found the solution: delete the file called maildirsize from the email accounts folder and try again.]]></description>
			<content:encoded><![CDATA[<p>Had a problem today &#8211; for some reason, whenever I went to increase the quota, it would just give an error. A quick Google found the solution: delete the file called maildirsize from the email accounts folder and try again.</p>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/increase-email-quota-using-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamweaver code colouring/coloring</title>
		<link>http://mrportman.co.uk/dreamweaver-code-colouringcoloring/</link>
		<comments>http://mrportman.co.uk/dreamweaver-code-colouringcoloring/#comments</comments>
		<pubDate>Sat, 22 May 2010 10:18:56 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dreamweaver]]></category>

		<guid isPermaLink="false">http://mrportman.co.uk/?p=573</guid>
		<description><![CDATA[The default code colour/color scheme in Dreamweaver can get a bit bright for the eyes, so I like to use a darker one. I originally made my own, which takes ages, and then went and lost it when upgrading to Windows 7. Fortunately, someone&#8217;s kindly done the same but offered a copy of theirs for [...]]]></description>
			<content:encoded><![CDATA[<p>The default code colour/color scheme in Dreamweaver can get a bit bright for the eyes, so I like to use a darker one. I originally made my own, which takes ages, and then went and lost it when upgrading to Windows 7.</p>
<p>Fortunately, someone&#8217;s kindly done the same but offered a copy of theirs for downloading, <a href="http://www.thatwebguyblog.com/show_article.php?id=2651">here</a>.</p>
<p>If, like me, you are using Windows 7, then your file will go here:</p>
<blockquote><p>C:\Users\%username%\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration\CodeColoring\</p></blockquote>
<p>If the original site ever disappears, <a href="http://mrportman.co.uk/contact">get in touch</a> and I&#8217;ll send you mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://mrportman.co.uk/dreamweaver-code-colouringcoloring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
