<?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>Ed Townend &#187; PHP</title>
	<atom:link href="http://www.teamtownend.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.teamtownend.com</link>
	<description>Edward Townend, Graphic/Web Designer, Photographer, and Web Developer based in Barnsley, South Yorkshire, UK</description>
	<lastBuildDate>Wed, 16 Nov 2011 17:59:10 +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>Sportspower Club &#8211; Custom PHP/MySQL website made to a tight deadline</title>
		<link>http://www.teamtownend.com/2010/07/sportspower-club-custom-phpmysql-website-made-to-a-tight-deadline/</link>
		<comments>http://www.teamtownend.com/2010/07/sportspower-club-custom-phpmysql-website-made-to-a-tight-deadline/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:08:02 +0000</pubDate>
		<dc:creator>Edward Townend</dc:creator>
				<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[case study]]></category>
		<category><![CDATA[new site]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sportspower]]></category>
		<category><![CDATA[sportspowerclub]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.teamtownend.com/?p=216</guid>
		<description><![CDATA[I was recently commissioned to produce a site for a new betting tip service, which had to have a members area updated daily with new tips. The most important criteria to the client was speed: the website had to be &#8230; <a href="http://www.teamtownend.com/2010/07/sportspower-club-custom-phpmysql-website-made-to-a-tight-deadline/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sportspowerclub.com" target="_blank"><img class="alignleft size-full wp-image-217" title="Sportspower Club" src="http://www.teamtownend.com/wp-content/uploads/2010/07/sportspower.jpg" alt="Sportspower Club" width="300" height="267" /></a>I was recently commissioned to produce a site for a new betting tip service, which had to have a members area updated daily with new tips. The most important criteria to the client was speed: the website had to be up and running as soon as possible.</p>
<p>I chose to start from the ground up using HTML/CSS for layout and PHP/MySQL for the management components, rather than using a pre-built CMS, to get exactly and only the features the client and their clients needed.</p>
<p>Ed Townend Does Design! completed the project on time and to the clients delight &#8211; adding the tips each day and managing club members could not be easier! Members love the way they can filter tips for any date and the streamlined PayPal subscription system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teamtownend.com/2010/07/sportspower-club-custom-phpmysql-website-made-to-a-tight-deadline/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Should I use Dreamweaver to write PHP code?</title>
		<link>http://www.teamtownend.com/2010/03/should-i-use-dreamweaver-to-write-php-code/</link>
		<comments>http://www.teamtownend.com/2010/03/should-i-use-dreamweaver-to-write-php-code/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 18:31:20 +0000</pubDate>
		<dc:creator>Edward Townend</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[building applications visually]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[visual programming]]></category>

		<guid isPermaLink="false">http://www.teamtownend.com/?p=126</guid>
		<description><![CDATA[That&#8217;s a question I was asking myself about a year ago now, when I was approached to write a database system for a betting tipster. The concept was fairly simple, the employees of this business need an online form to &#8230; <a href="http://www.teamtownend.com/2010/03/should-i-use-dreamweaver-to-write-php-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s a question I was asking myself about a year ago now, when I was approached to write a database system for a betting tipster. The concept was fairly simple, the employees of this business need an online form to add tips for each betting system the company runs, and later update these tips with the result of the race.  Then a paying customer can access this information as a nice table, with the ability to filter a specific date and/or betting system. He can also choose to download the data to process in his own Excel spreadsheet, for example. Pretty simple, no?</p>
<div id="attachment_133" class="wp-caption alignleft" style="width: 310px"><a href="http://www.teamtownend.com/wp-content/uploads/2010/03/1.jpg"><img class="size-medium wp-image-133" title="1" src="http://www.teamtownend.com/wp-content/uploads/2010/03/1-300x269.jpg" alt="" width="300" height="269" /></a><p class="wp-caption-text">Edit Screen</p></div>
<p>This was, however, the first project I&#8217;d ever chosen to write in PHP, so I had to learn to adapt my knowledge of  Visual Basic and Access via ODBC, a client-side language, to the server-side nature of PHP and MySQL. The cient didn&#8217;t really want to hang around forever, so I thought I could speed up the whole process by using Dreamweaver&#8217;s ability to &#8216;build applications visually&#8217;, then tweak and add to the resultant code to add the custom features they requested. These included automatically defaulting to editing today&#8217;s date, a rich text editor for notes, easily editable drop down menus for the betting system, automatically moving to the next tip once saving, and some other stuff. It still sounded pretty easy, even for a PHP novice.</p>
<p>After some initial confusion regarding using phpMyAdmin to create the database (solved by the hosting provider,) I was amazed at how quickly and easily I could piece together the bones of this program in Dreamweaver without even touching the code. It seemed a great way to work, letting Dreamweaver do the hard work and then tweaking the result. I was getting paid to click and drag! However, I soon ran into problems. Once I had a few server behaviours on the page, they started to clash, as they were all trying to use the same variables. This took a few hours to hunt down, and even more to correct the problems I caused (Coming from my VB background, I kept forgetting that lines had to be ended with a semicolon.) The biggest problems arose when I finished the structure and came to tweaking Dreamweaver&#8217;s generated code. What seemed to happen when I made a change to the code, is that Dreamweaver would no longer recognise its own code, the server behaviour would disappear from the side panel, and then it would decide that the code was &#8216;wrong&#8217; or redundant and try automatically correcting it or even deleting it. I can&#8217;t remember the specific problems now, but it really felt that it was me versus Dreamweaver, with it battling to keep its code and me trying to hack it up with my keyboard. In the end, I got a working system presented to the client, and thought that was it.</p>
<div id="attachment_135" class="wp-caption alignleft" style="width: 310px"><a href="http://www.teamtownend.com/wp-content/uploads/2010/03/2.jpg"><img class="size-medium wp-image-135" title="2" src="http://www.teamtownend.com/wp-content/uploads/2010/03/2-300x277.jpg" alt="" width="300" height="277" /></a><p class="wp-caption-text">TinyMCE (The text editor) was really easy to integrate, and has options for every scenario</p></div>
<p>Now, a year or so later, I&#8217;ve been asked to add some more features to the code. Since then, I&#8217;ve moved from CS3 to CS4, and immediately I ran into problems with Dreamweaver not recognising the spry tabbed panels I used to separate the different actions the user can take (see the screenshots). From there I ran into the same sort of problems as last time, but I was now better prepared to deal with them. Last night I got the extra features finished, and saved the files ready to deliver to the client on Monday. This morning I had a quick check of the finished page, and spotted a line of text that could be better worded. I changed the text, which involved no changes to the PHP code, uploaded to the server to test once more, and what?! Suddenly the save button is broken! The code goes through all the motions of saving to the database, the page refreshes, the confirmation message shows, but the change has not stuck. But this was working last night, and I haven&#8217;t even changed the PHP code! Now I remember last time, Dreamweaver played this game with me, and it took ages to find that it had automatically added a closing tag or something where I didn&#8217;t want one. For some reason the update record server behaviour has disappeared from the panel. Now I&#8217;m going to have to look through all the code to find something I didn&#8217;t even cause. This sort of thing adds loads of time to a project that can otherwise be complete, and I can&#8217;t even imagine a timescale that I can find this bug in. It&#8217;s really frustrating, Adobe.</p>
<p>Why didn&#8217;t I just stop using Dreamweaver for this project and code manually? I&#8217;m a stubborn guy, and I really believe the concept of building applications visually, then adding on custom features can speed things along, if only Dreamweaver could keep its nose out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.teamtownend.com/2010/03/should-i-use-dreamweaver-to-write-php-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

