<?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>PC Pro blog &#187; php</title>
	<atom:link href="http://www.pcpro.co.uk/blogs/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pcpro.co.uk/blogs</link>
	<description>Blogging in the real world</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:54:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The hard facts: what languages web developers should learn</title>
		<link>http://www.pcpro.co.uk/blogs/2010/05/06/the-hard-facts-what-languages-web-developers-should-learn/</link>
		<comments>http://www.pcpro.co.uk/blogs/2010/05/06/the-hard-facts-what-languages-web-developers-should-learn/#comments</comments>
		<pubDate>Thu, 06 May 2010 11:43:59 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Online business]]></category>
		<category><![CDATA[Real World Computing]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[web developers]]></category>

		<guid isPermaLink="false">http://www.pcpro.co.uk/blogs/?p=15973</guid>
		<description><![CDATA[When I first started learning programming, choices were limited to machine code or a version of BASIC. But then I am ancient.
In many ways, the newcomer to programming who’s aiming at web or mobile development has a much better time of it today. This is because whilst there are many, many languages to choose from, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-15979" src="http://www.pcpro.co.uk/blogs/wp-content/uploads/2010/05/silverlight_v_web-156x175.jpg" alt="SL_logo_v" width="156" height="175" />When I first started learning programming, choices were limited to machine code or a version of BASIC. But then I am ancient.</p>
<p>In many ways, the newcomer to programming who’s aiming at web or mobile development has a much better time of it today. This is because whilst there are many, many languages to choose from, they have much more in common than languages of the past. Learn ActionScript, for example, and you’re half way there with C#, PHP and JavaScript, as their basic constructs are identical.</p>
<p>But the real value you, as a web developer, can bring to a project is specialist skill. Whilst every good PHP developer understands the basics of C#, no web project can be completed without in-depth knowledge, and this takes time and lots and lots of practice to develop. It’s a huge investment so the choice of which language to specialise in is also critical, at least in the short- to medium-term.<span id="more-15973"></span></p>
<p>If you’re aiming to develop your own web applications, you can choose whichever language flies your kite. I develop in PHP, JavaScript/jQuery and Flex/Flash Builder because I like them. PHP is my absolute favourite, and I tend to use that alongside jQuery unless I need the super-rich application features that only Flex/Flash can deliver. My brother, on the other hand, is a massive fan of C# and either language is perfectly capable of creating sophisticated web applications.</p>
<p>If you want to hire yourself out you need to make a more pragmatic choice about which development tool to specialise in and one way to do this is to look at the demand for each. <a href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">According to the TIOBE Programming Community Index for April 2010</a>, the venerable trinity of C, Java and C++ are the most widely used and requested programming languages. This is mainly because of the huge quantity of legacy code that needs to be managed within large corporations. PHP is the top web scripting language with C# around half of PHP’s level and Python and Perl next. Objective-C, the language used for creating iPhone applications, still only accounts for a tiny fraction of the programming market but is massively on the rise.</p>
<p>So, for web development, PHP is the most popular language (note, I did not say “best”). That’s all very well but I rather suspect that there are more programmers working in PHP than any other development language, which means the competition is huge. We need to know the ratio between popularity and competition.</p>
<p>I went to freelance recruitment site <a title="Guru.com" href="http://www.guru.com/" target="_blank">Guru.com</a> and, for each language, found out the number of projects posted for each of the common web and mobile platform development languages. I then noted how many freelancers/companies offered each language. By dividing one into the other, we end up with a rough idea of how competitive the market for expertise in each language is. For example, when I checked there were 151 PHP projects on Guru and 7,769 providers. This means that there are 51.45 providers for each job.</p>
<p>Here’s the full list:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="177" valign="top"><strong>Tool</strong></td>
<td width="170" valign="top"><strong>Providers/Jobs</strong> (low is better)</td>
</tr>
<tr>
<td width="177" valign="top">Android</td>
<td width="170" valign="top">1.86</td>
</tr>
<tr>
<td width="177" valign="top">iPhone</td>
<td width="170" valign="top">3.39</td>
</tr>
<tr>
<td width="177" valign="top">Silverlight</td>
<td width="170" valign="top">14.44</td>
</tr>
<tr>
<td width="177" valign="top">Flex</td>
<td width="170" valign="top">38</td>
</tr>
<tr>
<td width="177" valign="top">PHP</td>
<td width="170" valign="top">51.45</td>
</tr>
<tr>
<td width="177" valign="top">ASP/ASPX</td>
<td width="170" valign="top">52.5</td>
</tr>
<tr>
<td width="177" valign="top">Ruby</td>
<td width="170" valign="top">83.8</td>
</tr>
<tr>
<td width="177" valign="top">Python</td>
<td width="170" valign="top">90.3</td>
</tr>
<tr>
<td width="177" valign="top">Flash</td>
<td width="170" valign="top">90.9</td>
</tr>
</tbody>
</table>
<p>What leaps out immediately is that the competition ratio for mobile development is much lower than for web development, and within that Android development is almost twice as attractive a market as iPhone development.</p>
<p>Looking at the web development languages, it looks as though Flash, Python and Ruby development are markets that are saturated with developers chasing relatively few projects. PHP and ASP (which includes ASP and ASPX) are neck-and-neck but the head and shoulders winners are Flex and Silverlight. Whilst there are relatively few projects, there are also few developers.</p>
<p>So which should you choose? Looking at these ratios, it seems to me that choosing either PHP or ASP development with Visual Studio for creating standard web applications is a good initial approach. PHP has the advantage of being free to install and develop for (there are plenty of free IDEs) whereas skills developed in C#, for example, are also transferrable into desktop development. The other benefit of developing in the Visual Studio environment is that adding Flash-like functionality is simply a matter of extending your existing C# skills so that they use the Silverlight player.</p>
<p>From the purely commercial point of view (and if you assume that Silverlight will, eventually, succeed as a technology in becoming as ubiquitous as Flash Player) the Visual Studio approach has a lot going for it: C# becomes a single language that can be used on the desktop, for creating standard .aspx web applications and for developing Silverlight applications.</p>
<p>For me, however, PHP is unbeatable when it comes to productivity, and Flash Player is way ahead in terms of browser installations so, at least for now, I’ll be sticking to this combination. My advice to a newcomer to programming, however, would probably be to download Visual Studio 2010 Express and try C# for size – it may well, finally, be the future Microsoft always intended it to be.</p>
<p>On the other hand, with the forthcoming release of Adobe Air for Android and the low competition level for Android development, Flex has suddenly become a very credible development environment for that platform. You pays your money&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pcpro.co.uk/blogs/2010/05/06/the-hard-facts-what-languages-web-developers-should-learn/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>phpDesigner 2008</title>
		<link>http://www.pcpro.co.uk/blogs/2008/06/04/phpdesigner-2008/</link>
		<comments>http://www.pcpro.co.uk/blogs/2008/06/04/phpdesigner-2008/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 10:38:24 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Real World Computing]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php ide]]></category>
		<category><![CDATA[web applications]]></category>

		<guid isPermaLink="false">http://www.pcpro.co.uk/blogs/?p=1203</guid>
		<description><![CDATA[It seems that my endless search for the ideal PHP IDE has finally&#8230;er&#8230;ended. phpDesigner 2008 is the most promising environment I&#8217;ve seen and even though I&#8217;ve only just started using it, it&#8217;s already seen Zend Studio Pro and the treacle-like Zend Studio Eclipse confined to the recycle bin.

Remarkably, phpDesigner is the work of one man, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that my endless search for the ideal PHP IDE has finally&#8230;er&#8230;ended. phpDesigner 2008 is the most promising environment I&#8217;ve seen and even though I&#8217;ve only just started using it, it&#8217;s already seen Zend Studio Pro and the treacle-like Zend Studio Eclipse confined to the recycle bin.</p>
<p><span id="more-1203"></span></p>
<p>Remarkably, phpDesigner is the work of one man, Michael Pham from Denmark who&#8217;s put it together (perhaps even more remarkably) in Delphi. phpDesigner has lots of productivity tools designed to make coding more efficient, it incorporates tools for editing related technologies such as HTML, CSS and JavaScript and is one of the few tools that, through its excellent syntax tools, built in manuals and code snippets, helps newcomers to learn PHP.</p>
<p>And perhaps the best news is the price (less than forty quid including VAT). There&#8217;s a trial version available at <a title="MP Software's website" href="http://www.mpsoftware.dk" target="_blank">http://www.mpsoftware.dk</a> and the product is being actively developed with a beta version currently downloadable for all registered users.</p>
<p>It&#8217;s not often that I come across a piece of software like this that blows me away with its quality and value. I&#8217;ve been struggling with Zend&#8217;s reasonably featured but unresponsive products and had switched to the (also excellent) Ultraedit but phpDesigner looks like being my IDE of choice, at least for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pcpro.co.uk/blogs/2008/06/04/phpdesigner-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>When to use Stored Procedures</title>
		<link>http://www.pcpro.co.uk/blogs/2008/05/18/when-to-use-stored-procedures/</link>
		<comments>http://www.pcpro.co.uk/blogs/2008/05/18/when-to-use-stored-procedures/#comments</comments>
		<pubDate>Sun, 18 May 2008 20:35:05 +0000</pubDate>
		<dc:creator>Kevin Partner</dc:creator>
				<category><![CDATA[Real World Computing]]></category>
		<category><![CDATA[kevin partner]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[stored procedures]]></category>

		<guid isPermaLink="false">http://www.pcpro.co.uk/blogs/?p=699</guid>
		<description><![CDATA[Version 5 of MySQL added Stored Procedures and, as is often the case when you&#8217;ve been using earlier versions, I didn&#8217;t notice at all, until a client asked whether the site I&#8217;m building for him should be using this technique for interacting with a database. In this case, the answer is a resounding no since [...]]]></description>
			<content:encoded><![CDATA[<p>Version 5 of MySQL added Stored Procedures and, as is often the case when you&#8217;ve been using earlier versions, I didn&#8217;t notice at all, until a client asked whether the site I&#8217;m building for him should be using this technique for interacting with a database. In this case, the answer is a resounding <strong>no </strong>since it would add an unnecessary level of complexity to a site in which the MySQL queries rarely involve more than one table at a time.</p>
<p>So, when should they be used?</p>
<p><span id="more-699"></span></p>
<p>A Stored Procedure is, as its name suggests, a series of SQL statements saved for use later, sort of like an old fashioned .bat Batch file on steroids. They&#8217;re particularly useful where you have a complex sequence of actions that never changes: you can get it right once and then run it with much lower overheads in future.</p>
<p>I&#8217;ve also heard claims that Stored Procedures improve security against SQL Injection but it&#8217;s hard to see why where dynamic data is concerned and, after all, PHP includes <strong>mysql_real_escape_string</strong> which protects against this form of attack.</p>
<p>So, it seems to me that Stored Procedures would be useful for busy sites with repetitive actions (for example interfacing a shopping cart with a stock management system) but do they have uses for more typical web applications? Or would you suggest that they should be used for every SQL query?</p>
<p>I really don&#8217;t know where the line should be drawn: at the extremes it&#8217;s pretty clear but the line is extremely fuzzy. Any thoughts?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pcpro.co.uk/blogs/2008/05/18/when-to-use-stored-procedures/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

