<?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>The Web Design Blog &#187; Tutorials</title>
	<atom:link href="http://www.thewebdesignblog.co.uk/category/web-resources/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebdesignblog.co.uk</link>
	<description>Web design tutorials, articles, news, tips, freebies, downloads, reviews and interviews from The Web Design Blog</description>
	<lastBuildDate>Thu, 01 Dec 2011 18:06:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>5 Handy PHP Tips and Tricks</title>
		<link>http://www.thewebdesignblog.co.uk/web-resources/tutorials/php-tutorials/5-handy-php-tips-and-tricks/</link>
		<comments>http://www.thewebdesignblog.co.uk/web-resources/tutorials/php-tutorials/5-handy-php-tips-and-tricks/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 15:39:22 +0000</pubDate>
		<dc:creator>Darren Pinder</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://www.thewebdesignblog.co.uk/?p=1196</guid>
		<description><![CDATA[We are delighted to welcome our first guest author to The Web Design Blog. Darren Pinder is a Web Designer working out of Glossop, Derbyshire and in his first article he shares five very handy PHP tips.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Darren set up <a href="http://www.online-selling.co.uk">Online Selling</a> in January 2009 providing website design and eCommerce websites.</p>
<p><a href="http://www.online-selling.co.uk"><img class="alignnone size-full wp-image-1217" title="5 Handy PHP Tips and Tricks by Darren Pinder" src="http://www.thewebdesignblog.co.uk/wp-content/uploads/2010/01/php-tips-banner.jpg" alt="5 Handy PHP Tips and Tricks by Darren Pinder" width="540" height="270" /></a></p>
<p>PHP will be celebrating its 15th birthday this year, and now is a great time to look back and wonder at how it&#8217;s managed to become such an integral part of internet design and application during that time.</p>
<p>It has become one of the first choice languages of web application developers, the go-to language if your website needs something more than what HTML can give you. Over 20 million domains have PHP installed, and it is considered the most popular Apache HTTP Server module by far. Some of the most famous examples of PHP at work are Facebook, Wikipedia, Yahoo!, Digg, Joomla, WordPress, YouTube, and more. PHP has become part of the internet.</p>
<p>For the anniversary of PHP, I decided a &#8220;5 Useful Tips&#8221; list was in order, to help you use PHP to its full potential (and to avoid some of the problems inherent in the language!). I hope you find these useful.</p>
<h1 class="splitter">1. PHP memory allocation</h1>
<p>PHP scripts have a memory allocation attached to them by the server. To stop a PHP script taking up too much processing power, usually an arbitrary Mb usage is allocated. Sometimes this is a hinderance to web developers, so to increase the amount of memory allowed, enter the following line into the php.ini file on the root of your website. If the php.ini doesn&#8217;t exist, you can simply create it. You can increase this number if you still need more memory, but you may find an upper limit set by your host.</p>
<pre>memory_limit=16M</pre>
<h1 class="splitter">2. PHP include functions</h1>
<p>PHP can be used to great effect on websites which don&#8217;t involve any database interaction. By using the PHP include function, you can include another .php file anywhere in the current file. This can be extremely useful to include, for examples, headers, or footers, or a left menu that stays fixed. Instead of having to make changes to each file in the future, you can change the one PHP included into all the others. The syntax for including a file is as follows:</p>
<pre>&lt;?php include ('directory/file.php'); ?&gt;</pre>
<h1 class="splitter">3. Setting variables in PHP</h1>
<p>Another really useful PHP tip is to create variables, which can be a huge time saver later on down the line. Do you have to regularly enter a phone number or email address? By storing bits of information into variables, you can change the information and once and have it propegate site-wide instantly. No more Find and Replace, we say. To store a variable, use the following code:</p>
<pre>$variable_name = 'variable_result';</pre>
<p>And to call the variable, use:</p>
<pre>&lt;?php echo $variable_name; ?&gt;</pre>
<h1 class="splitter">4. Using if statements in PHP</h1>
<p>Using if statements in PHP can be incredibly useful for only showing information you really want to. The potential that an if statement can give you is huge, and the syntax is incredibly easy to use. For example, if the variable telephone1 is defined, then show it:</p>
<pre>&lt;?php if
("$telephone1" != "") {
	echo ("$telephone1");
} ?&gt;</pre>
<h1 class="splitter">5. Difference between single and double quotes</h1>
<p>In PHP there is a difference when using either single or double quotes, either &#8216; or &#8220;. If you use double quotes &#8221; then you are telling the code to check for a variable. If you are using single quotes &#8216; then you are telling it to print whatever is between them. This might seem a bit trivial, but if you use the double quotes instead of the single quotes, it will still output correctly, but you will be wasting processer time.</p>
<p>So that&#8217;s it, 5 useful and hopefully time-saving tips for you. I&#8217;d love to hear any feedback you have on these solutions, whether they worked for you, or whether you have another useful tip to share with others.</p>
<p>You can view more of Darren&#8217;s work at <a href="http://www.online-selling.co.uk">Online Selling</a> where he provides website design and eCommerce websites.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thewebdesignblog.co.uk/web-resources/tutorials/php-tutorials/5-handy-php-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Create Easy Glossy Buttons with Xara Xtreme Screencast</title>
		<link>http://www.thewebdesignblog.co.uk/web-resources/tutorials/create-easy-glossy-buttons-with-xara-xtreme-screencast/</link>
		<comments>http://www.thewebdesignblog.co.uk/web-resources/tutorials/create-easy-glossy-buttons-with-xara-xtreme-screencast/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 23:10:48 +0000</pubDate>
		<dc:creator>Phil Matthews</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[glossy]]></category>
		<category><![CDATA[xara xtreme]]></category>

		<guid isPermaLink="false">http://www.thewebdesignblog.co.uk/?p=500</guid>
		<description><![CDATA[I love Xara Xtreme! I use it all the time for vector work. In fact, most of the design for this site was done with it! The main thing that keeps me using it time after time is the incredibly fast rendering engine speed.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>You can learn more at <a href="http://www.xara.com/uk/">www.xara.com</a> or the forums at <a href="http://www.talkgraphics.com">www.talkgraphics.com</a></p>
<p>We&#8217;ve put together a short 2 minute video below showing how easy it is to create glossy buttons with rounded rectangles, transparencies, feather effects and gradients. Many vector packages have very long winded ways of approaching these techniques but <a href="http://www.xara.com/uk/products/xtreme/">Xara Xtreme</a> is highly intuitive in the way it approaches these tools.</p>
<p><a href="http://www.xara.com/uk/"><img class="alignnone size-full wp-image-506" title="Xara Xtreme" src="http://www.thewebdesignblog.co.uk/wp-content/uploads/2009/09/xara-xtreme.jpg" alt="Xara Xtreme" width="540" height="150" /></a></p>
<p>Xara Xtreme also allows for very large work areas so you can be working on a main design and have lots of little bits you are working on just off canvas. Great for mocking up web pages or illustration work.</p>
<p>File sizes are also kept very low even when the canvas size and elements are very detailed which helps the software run at such a fast speed. The latest version sees several additions to the non-vector side of the program which offer even more uses such as basic photo editing and even website template generation.</p>
<p>What about the downsides? Well, the fact the latest version is Windows only is holding the software back from Mac users (and there are a lot of designers using Macs) plus the fact that Adobe Illustrator has become the industry standard which may put some people off trying it. But, if you are a Windows user I highly recommend you download the free trial, read up on some tutorials and give it a go!</p>
<p><a href="http://www.xara.com/uk/products/xtreme/">http://www.xara.com/uk/products/xtreme/</a></p>
<h1 class="splitter">Screencast</h1>
<p>This screencast (without audio commentary) shows how quickly you can adjust curves, gradients and transparencies to produce a glossy button in around 2 minutes with Xara Xtreme. If you use Xara Xtreme you can download the source files at the bottom of this page.</p>
<p><strong>Please view in full screen mode for best results.</strong></p>
<p><strong> </strong><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="540" height="333" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="i=11714" /><param name="allowFullScreen" value="true" /><param name="src" value="http://screenr.com/Content/assets/screenr_0817090731.swf" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="540" height="333" src="http://screenr.com/Content/assets/screenr_0817090731.swf" allowfullscreen="true" flashvars="i=11714"></embed></object></p>
<p>You can learn more at <a href="http://www.xara.com/uk/">www.xara.com</a> or the forums at <a href="http://www.talkgraphics.com">www.talkgraphics.com</a></p>
<h1 class="splitter">Download</h1>
<p>You can download the source files used for this screencast in .xar format:</p>
<a class="downloadlink" href="http://www.thewebdesignblog.co.uk/wp-content/plugins/download-monitor/download.php?id=2" title="Version 1 downloaded 356 times" >Xara Xtreme Glossy Buttons</a>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thewebdesignblog.co.uk/web-resources/tutorials/create-easy-glossy-buttons-with-xara-xtreme-screencast/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

