<?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>tripleaxis.com &#187; PHP</title>
	<atom:link href="http://blog.tripleaxis.com/index.php/archives/category/development/php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.tripleaxis.com</link>
	<description></description>
	<lastBuildDate>Sat, 29 May 2010 22:00:56 +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>FileStructure to XML Parser</title>
		<link>http://blog.tripleaxis.com/index.php/archives/79</link>
		<comments>http://blog.tripleaxis.com/index.php/archives/79#comments</comments>
		<pubDate>Sat, 09 Jul 2005 16:48:58 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=79</guid>
		<description><![CDATA[
			
				
			
		
In a lot of sites you&#8217;ll do these days, there&#8217;ll be XML driven content and clients who want control over their content. Now somewhere along the line, some silly bugger let the cat out of the bag and told a client that it is possible to write sites that read content directly from the local [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.tripleaxis.com%2Findex.php%2Farchives%2F79"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.tripleaxis.com%2Findex.php%2Farchives%2F79&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>In a lot of sites you&#8217;ll do these days, there&#8217;ll be XML driven content and clients who want control over their content. Now somewhere along the line, some silly bugger let the cat out of the bag and told a client that it is possible to write sites that read content directly from the local filestructure in order to build the site content.<br />
&#8220;Right&#8221;, said the client, and ran off to tell all of his mates that they no longer needed to pay developers every time they needed some of their site&#8217;s content updating.</p>
<p>And developers everywhere wept..</p>
<p>Well.. only to a certain degree.. It&#8217;s all money at the end of the day, but damn if it&#8217;s not boring &#8211; and sometimes annoying &#8211; as hell to have a client on the end of the phone, hassling you on a sunny Sunday afternoon to get his files cropped and uploaded, when all you want to do is enjoy your bloody weekend and sit in your paddling pool, sipping delicately at your local offie&#8217;s finest(cheapest) brew. (pinkie raised and everything <img src='http://blog.tripleaxis.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )<br />
<span id="more-79"></span><br />
Well, in flash dev, we come across things like Download lists, Photo Collections and the suchlike and to enable the client to have maximum control over their photos/documents/videos/etc, we can either write a <a target="_blank" href="http://www.cmswiki.com/tiki-index.php?page=ContentManagementSystem">CMS</a> of some description or just tell them to bung their files in a certain directory on the server.</p>
<p>This script is designed to take a folder name (hard coded to prevent security issues) and scan through it and any subfolders, documenting any files it finds there. As I was writing this, I realised the need for restrictions on what files to show, in case the folder structure contained any files we <strong>don&#8217;t</strong> want available to public viewing &#8211; and furthermore, any folders to exclude totally from the outputted XML file.</p>
<hr width="100%"/ color="#EFEFEF" noshade height="1" />
<p>Example:<br />
<iframe frameborder="0" scrolling="auto" width="100%" height="200" src="http://www.tripleaxis.com/code/php/XMLFileStructure.php"></iframe></p>
<hr width="100%"/ color="#EFEFEF" noshade height="1" />
Code:<br />
<iframe frameborder="0" scrolling="auto" width="100%" height="255" src="http://www.tripleaxis.com/codeViewer.php?file=php/XMLFileStructure.php"></iframe></p>
<hr width="100%"/ color="#EFEFEF" noshade height="1" />
]]></content:encoded>
			<wfw:commentRss>http://blog.tripleaxis.com/index.php/archives/79/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Email Link Encoding</title>
		<link>http://blog.tripleaxis.com/index.php/archives/75</link>
		<comments>http://blog.tripleaxis.com/index.php/archives/75#comments</comments>
		<pubDate>Sat, 09 Jul 2005 13:00:07 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=75</guid>
		<description><![CDATA[
			
				
			
		
One huge problem with being on the web is SPAM. This means that people are out there trying to get your email address by any means necessary. Nowadays, when you signup at most websites, you can be pretty sure that your personal details, including your email address is not going to be sold off to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.tripleaxis.com%2Findex.php%2Farchives%2F75"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.tripleaxis.com%2Findex.php%2Farchives%2F75&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>One huge problem with being on the web is <a target="_blank" href="http://dictionary.reference.com/search?q=spam">SPAM</a>. This means that people are out there trying to get your email address by any means necessary. Nowadays, when you signup at most websites, you can be pretty sure that your personal details, including your email address is <em>not</em> going to be sold off to some sausage-doctor&#8217;s marketing agency due to the new Data Protection rules regarding personal data in web applications.<br />
<span id="more-75"></span><br />
However. If you go and post your email address on a web page, there are no laws to say that the little spammy bastards can&#8217;t scan that page for email addresses, so I&#8217;ve written a little script to encode your email address into ascii codes, so that it looks fine when viewing it in a web page, but doesn&#8217;t resemble an email address when the page robots come looking&#8230;</p>
<p>Use the example below to ascii encode your email address and paste the result into your post or web page instead of your normal email address. You may also include the &#8220;mailto:&#8221; portion of email links if you want extra security.</p>
<hr width="100%"/ color="#EFEFEF" noshade height="1" />
<p>Example:<br />
<iframe frameborder="0" scrolling="No" width="100%" height="220" src="http://www.tripleaxis.com/enc_email.php"></iframe></p>
<hr width="100%"/ color="#EFEFEF" noshade height="1" />
Code:<br />
<iframe frameborder="0" scrolling="auto" width="100%" height="255" src="http://www.tripleaxis.com/codeViewer.php?file=php/emailEncoder.php"></iframe></p>
<hr width="100%"/ color="#EFEFEF" noshade height="1" />
]]></content:encoded>
			<wfw:commentRss>http://blog.tripleaxis.com/index.php/archives/75/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Getting started..</title>
		<link>http://blog.tripleaxis.com/index.php/archives/72</link>
		<comments>http://blog.tripleaxis.com/index.php/archives/72#comments</comments>
		<pubDate>Sat, 09 Jul 2005 11:57:30 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=72</guid>
		<description><![CDATA[
			
				
			
		
Well seeing as I have no posts in here whatsoever, I thought I&#8217;d get some of my old PHP scripts and info up here just in case it may be of some use to any wandering scripters or remind me how to do stuff when I haven&#8217;t touched PHP for months and need a recap [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.tripleaxis.com%2Findex.php%2Farchives%2F72"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.tripleaxis.com%2Findex.php%2Farchives%2F72&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Well seeing as I have no posts in here whatsoever, I thought I&#8217;d get some of my old PHP scripts and info up here just in case it may be of some use to any wandering scripters or remind me how to do stuff when I haven&#8217;t touched PHP for months and need a recap <img src='http://blog.tripleaxis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Take a peek in the PHP Files section on the right to see what&#8217;s on offer <img src='http://blog.tripleaxis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tripleaxis.com/index.php/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
