<?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>CSN-UK Blog &#187; PHP</title>
	<atom:link href="http://blog.csn-uk.net/category/tutorials/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.csn-uk.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 05 Feb 2011 23:47:33 +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>echo &#8216;Hello World&#8217;?</title>
		<link>http://blog.csn-uk.net/2009/02/17/echo-%e2%80%98hello-world%e2%80%99/</link>
		<comments>http://blog.csn-uk.net/2009/02/17/echo-%e2%80%98hello-world%e2%80%99/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 01:07:48 +0000</pubDate>
		<dc:creator>CSN-UK &#124; Charlie</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.csn-uk.net/?p=4</guid>
		<description><![CDATA[&#8220;Hello World&#8221; you will find this tutorial in almost every computer language and it is the very first step taken ...]]></description>
			<content:encoded><![CDATA[<p>&#8220;Hello World&#8221; you will find this tutorial in almost every computer language and it is the very first step taken when learning any new language. It will allow you to ensure your environment is working and introduce the &lt;tags&gt; used.</p>
<p>Let’s start by opening a text editor be that Dreamweaver, FrontPage, Expression Web, Notepad or any other. For the purpose of this tutorial we will use Notepad, please start by creating and naming the new text file: helloworld.php please note the .php extension.</p>
<p>PHP is self contained within tags, there are several formats for these tags however we recommend those used below as these are those that servers will seek out by default. Within a PHP file you are also free to use other languages such as HTML, CSS and JavaScript to name a few.</p>
<p>Type or copy and paste the code below  into notepad, and press save.</p>
<pre>&lt;html&gt;
 &lt;head&gt;
  &lt;title&gt;Hello Word&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;?php echo '&lt;p&gt;Hello World&lt;/p&gt;'; ?&gt;
 &lt;/body&gt;
&lt;/html&gt;</pre>
<p>This is now your first PHP page, although so far what have we learnt? Nothing? So it is now important to understand the code that you have just used:</p>
<ul>
<li><strong>&lt;html &gt; &lt;/html&gt;</strong> Begin and close the file in a HTML format.</li>
<li><strong>&lt;head&gt; &lt;/head&gt;</strong> This content is not visible directly on the page to the user but contains information about the webpage.</li>
<li><strong>&lt;title&gt; &lt;/title&gt;</strong> This is the name of the file as visible in the top of the web browser.</li>
<li><strong>&lt;body&gt; &lt;/body&gt;</strong> This begins the main Body of a HTML file and is where you type the code for the visible content on the webpage.</li>
<li><strong>&lt;?php ?&gt;</strong> These are the PHP open and close tags, all PHP code must be contained within these tags in order to work correctly and not cause an error.</li>
<li><strong>echo ‘Hello World’</strong><strong>;</strong> The function we have used here is echo, and it will simply display the content within the commas on the webpage. Please also note the ending semicolon <strong>;</strong> this is required at the end of each statement within PHP however there are some exceptions to this which will be mentioned in further tutorials.</li>
</ul>
<p>The final result should be a page identical to this <a href="http://www.csn-uk.net/blog/tutorial/helloworld.php" target="_blank">Page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csn-uk.net/2009/02/17/echo-%e2%80%98hello-world%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

