<?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>marcgray.co.uk &#187; PHP</title>
	<atom:link href="http://marcgray.co.uk/category/web/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://marcgray.co.uk</link>
	<description>Technical musings of a self-confessed geek.</description>
	<lastBuildDate>Mon, 28 Nov 2011 22:18:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP 5</title>
		<link>http://marcgray.co.uk/2009/10/php-5/</link>
		<comments>http://marcgray.co.uk/2009/10/php-5/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 08:36:48 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://marcgray.co.uk/?p=26</guid>
		<description><![CDATA[I hear Geocities has gone forever. Well, it&#8217;s hardly surprising, but it is a little sad. I remember signing up for one of their quaintly named sites all those years ago. Still, I went investigating and found Yahoo Web Hosting! (I feel everything with Yahoo! needs exclaiming, it is like some kind of marketing ploy [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' shr_layout='button_count' shr_showfaces='false' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F10%2Fphp-5%2F'></a><a class='shareaholic-googleplusone' shr_size='medium' shr_count='true' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F10%2Fphp-5%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop --><p>I hear Geocities has gone forever. Well, it&#8217;s hardly surprising, but it is a little sad. I remember signing up for one of their quaintly named sites all those years ago. Still, I went investigating and found Yahoo Web Hosting! (I feel everything with Yahoo! needs exclaiming, it is like some kind of marketing ploy of theirs, right!?)</p>
<p>I was curious to see what kind of features such a major player like Yahoo! would offer in their web hosting, and after a few clicks I found Perl and PHP support. Now before you pull out the party hats and invite your friends over, I mean it has &#8220;PHP&#8221; support. 4.3.11 to be precise.</p>
<p>This leads me onto a pet hate of mine. The PHP community have been moving ever forward and have hit a great milestone with version 5.3. It&#8217;s a great, rapidly maturing language &#8211; I use it daily. Hourly, even. Version 5 of PHP has been around for an eternity (in IT years, they&#8217;re like dog years you know&#8230;) and yet a large subset of the internet web hosting companies STILL INSIST ON USING PHP 4!!! WHY!?</p>
<p>I suggest next time you find a company &#8220;offering&#8221; you PHP 4, you send them a polite email reminding them version 5 was released in July 2004, and while you appreciate 5 years clearly isn&#8217;t long enough for them to evaluate and upgrade, perhaps now is the time to &#8220;take the plunge&#8221;.</p>
<p>For the record, my <a href="http://www.lamped.co.uk/">Lamped hosting</a> offer 5.3.1.</p>
<div class="shr-publisher-26"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' shr_layout='button_count' shr_showfaces='false' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F10%2Fphp-5%2F'></a><a class='shareaholic-googleplusone' shr_size='medium' shr_count='true' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F10%2Fphp-5%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://marcgray.co.uk/2009/10/php-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP, JS and CSS Compression</title>
		<link>http://marcgray.co.uk/2009/07/php-js-and-css-compression/</link>
		<comments>http://marcgray.co.uk/2009/07/php-js-and-css-compression/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 23:46:54 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://marcgray.co.uk/?p=20</guid>
		<description><![CDATA[I wasn&#8217;t feeling very well today, so I thought I&#8217;d do something more light-hearted and fun. Yes, that&#8217;s right! I wrote a website compression utility! Basically, you do &#8220;php sitecompress.php mywebsitefolder&#8221; and it goes through all the .php, .html, .htm, .js and .css files. Javascript and CSS (inline and external &#8211; yes I said inline. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' shr_layout='button_count' shr_showfaces='false' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F07%2Fphp-js-and-css-compression%2F'></a><a class='shareaholic-googleplusone' shr_size='medium' shr_count='true' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F07%2Fphp-js-and-css-compression%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop --><p>I wasn&#8217;t feeling very well today, so I thought I&#8217;d do something more light-hearted and fun.</p>
<p>Yes, that&#8217;s right! I wrote a website compression utility!</p>
<p>Basically, you do &#8220;php sitecompress.php mywebsitefolder&#8221; and it goes through all the .php, .html, .htm, .js and .css files. Javascript and CSS (inline and external &#8211; yes I said inline. It pulls out the scripts and styles embedded in your HTML and compresses those too) go through YUICompressor (courtesy of Yahoo UI library), PHP and HTML go through an internal algorithm to kill the whitespace. No, I didn&#8217;t use &#8220;php -w filename&#8221;, that would (a) be cheating, and (b) not be very good. Seems PHP&#8217;s own whitespace removal is a bit lackluster and keeps a lot of unnecessary whitespace.</p>
<p>I&#8217;ve run it on a download of microsoft.com and it displays identically. I&#8217;ve run it on the source code of PHPBB3 (after realising I have to add a &#8220;keep html comments&#8221; option, due to their templating system) and that seems fine (strips 4mb off the 37mb install).</p>
<p>I&#8217;ll do a bit more testing in the next couple of days and GPL it on Lamped.co.uk.</p>
<p>p.s. Apologies for the poor readability, It&#8217;s 00:45 and I&#8217;m very tired&#8230;</p>
<div class="shr-publisher-20"></div><!-- Start Shareaholic LikeButtonSetBottom --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' shr_layout='button_count' shr_showfaces='false' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F07%2Fphp-js-and-css-compression%2F'></a><a class='shareaholic-googleplusone' shr_size='medium' shr_count='true' shr_href='http%3A%2F%2Fmarcgray.co.uk%2F2009%2F07%2Fphp-js-and-css-compression%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom -->]]></content:encoded>
			<wfw:commentRss>http://marcgray.co.uk/2009/07/php-js-and-css-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

