<?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>Miskin IT News</title>
	<atom:link href="http://miskin-webdesign.com/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://miskin-webdesign.com/wordpress</link>
	<description>Miskin IT news, information and tutorials.</description>
	<lastBuildDate>Thu, 26 Jan 2012 15:34:44 +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>New website</title>
		<link>http://miskin-webdesign.com/wordpress/archives/394</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/394#comments</comments>
		<pubDate>Thu, 26 Jan 2012 15:34:44 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=394</guid>
		<description><![CDATA[Miskin IT now have a new website with online technical support. Please visit our homepage for details &#8211; Miskin IT]]></description>
			<content:encoded><![CDATA[<p>Miskin IT now have a new website with online technical support. Please visit our homepage for details &#8211; <a title="Miskin IT Homepage" href="http://miskin-it.co.uk">Miskin IT</a></p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/394/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growing concerns for smart phone security.</title>
		<link>http://miskin-webdesign.com/wordpress/archives/380</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/380#comments</comments>
		<pubDate>Thu, 12 Aug 2010 00:58:04 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=380</guid>
		<description><![CDATA[There is growing concern for smart phone security and the rise of malicious software downloadable through Apps and websites. Modern smart phones these days hold not only personal contact information but website and email passwords like Facebook and Hotmail. A recent virus found on Android OS made the phone text premium rate numbers costing the [...]]]></description>
			<content:encoded><![CDATA[<p>There is growing concern for smart phone security and the rise of malicious software downloadable through Apps and websites. Modern smart phones these days hold not only personal contact information but website and email passwords like Facebook and Hotmail.</p>
<p>A recent virus found on Android OS made the phone text premium rate numbers costing the phone owner hundreds of pounds. More worryingly the software and virus was easily transmitted by text message from phone to phone making the receiver more likely to trust and install the software if received from a friend.</p>
<p style="text-align: center;"><a href="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/android-security-concerns.png"><img class="aligncenter size-full wp-image-382" title="Android Security Concerns" src="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/android-security-concerns.png" alt="Android Security Concerns" width="243" height="253" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">Advice for all smart phones would be to only download Apps and software from official markets, be very cautious of apps that want more control over your phone than necessary and do not install apps and software received in text messages even when the source is known.</p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/380/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do you view .pdf files?</title>
		<link>http://miskin-webdesign.com/wordpress/archives/371</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/371#comments</comments>
		<pubDate>Sun, 08 Aug 2010 14:47:00 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Computing Information]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=371</guid>
		<description><![CDATA[A .pdf file is a Portable Document Format made by Adobe. There are many ways to view the files but the most common method is using Adobe Reader 9. Adobe Reader 9 is free for download from http://www.adobe.com/products/reader/ There are many ways to create or edit .pdf files. One of the more popular methods is [...]]]></description>
			<content:encoded><![CDATA[<p>A .pdf file is a Portable Document Format made by Adobe. There are many ways to view the files but the most common method is using Adobe Reader 9. Adobe Reader 9 is free for download from <a title="Adobe Reader 9" href="http://www.adobe.com/products/reader/" target="_blank">http://www.adobe.com/products/reader/</a></p>
<p>There are many ways to create or edit .pdf files. One of the more popular methods is to use <a title="Open Office 3" href="http://www.openoffice.org/" target="_blank">Open Office 3</a> and export as a pdf.<br/><br/><br/></p>
<p style="text-align: center;"><a href="http://www.adobe.com/products/reader/"><img class="size-full wp-image-372  aligncenter" title="Adobe Reader 9" src="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/Adobe-Reader-9.jpg" alt="Adobe Reader 9 Download" width="500" height="100" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/371/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrome OS: Touch of genius or missing the mark?</title>
		<link>http://miskin-webdesign.com/wordpress/archives/354</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/354#comments</comments>
		<pubDate>Sun, 08 Aug 2010 13:49:51 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=354</guid>
		<description><![CDATA[With the Chrome OS release date getting ever nearer we take a quick look at its details and functions. The OS is not like Windows or OSX but specifically designed for cloud computing and online storage with no functions to install local software.  Hardware specifications will be strictly controlled by Google and have banned certain [...]]]></description>
			<content:encoded><![CDATA[<p>With the Chrome OS release date getting ever nearer we take a quick look at its details and functions. The OS is not like Windows or OSX but specifically designed for cloud computing and online storage with no functions to install local software.  Hardware specifications will be strictly controlled by Google and have banned certain elements like hard drives. There&#8217;s no doubt there is a market for simple, secure, easy to use laptops and other than the iPad there doesn&#8217;t seem to be any worth while solutions at the moment.</p>
<p style="text-align: center;"><a href="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/Google-Chrome-OS.png"><br />
</a><a href="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/Google-Chrome-OS1.png"><img class="size-medium wp-image-359  aligncenter" title="Google Chrome OS" src="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/Google-Chrome-OS1-300x168.png" alt="Google Chrome OS" width="300" height="168" /></a></p>
<p>Below are some points why we think it may hit or miss the mark:</p>
<p>Hit:</p>
<ul>
<li>With all software being web based the OS boot times will be considerably quick</li>
<li> Being open sourced  linux based it will be easy to tailor to suit specific needs and add extra functionality.</li>
<li> As more and more silver surfers go online there is clearly a glaring hole in the market for easy use, secure systems with simple functionality.</li>
<li> The inclusion of Apps will make the OS even more appealling.</li>
</ul>
<p>Miss:</p>
<ul>
<li> Serious computer users will find it&#8217;s lack of local storage a complete hinderence.</li>
<li>It will be completely dependant on internet access meaning many users and businesses with poor or unreliable internet will not want one.</li>
<li>Non-compatibilty with Andriod Apps shows a lack of planning.</li>
<li>You&#8217;re limited to software that is only on the cloud.</li>
<li>Effeciency of the OS may be based on how near your Cloud server is to your location.  Will Google be willing to setup servers in remote countries with slower internet speeds?</li>
</ul>
<p>There&#8217;s no doubt that many customers simply want a easy and secure laptop with simple browsing and email functionality so in many respects Chrome OS will work. But the limitations imposed by Google will mean that any serious computer user is still going to need a laptop or desktop before this. Like the iPad it&#8217;s going to be something more of an addition to peoples homes but not a serious option for businesses. These limitations seem to make sense when you realise Google&#8217;s aim isn&#8217;t to directly compete with exsisting OS like Windows 7. With it being open source Linux though, it will be very interesting to see what customisation will be made to the OS by developers and whether we will eventually be able to use it on laptops as a normal OS.  Perhaps this will be the boot up the backside Linux OS needs?</p>
<p>What is interesting is the talk that Chrome can be shipped with other OS giving the user the best of both worlds on one computer.  Now that&#8217;s an appealing concept.</p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/354/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>End of the line for net neutrality.</title>
		<link>http://miskin-webdesign.com/wordpress/archives/347</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/347#comments</comments>
		<pubDate>Sat, 07 Aug 2010 11:48:33 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=347</guid>
		<description><![CDATA[The days of the free, open and neutral internet are coming to an end. More and more pressure seems to be building to create a two tier internet for traffic that pays for priority over others. In latest news Google and Verizon have hatched a deal to allow paying websites greater speeds over the net. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/iStock_000009445310XSmall.jpg"><img class="size-medium wp-image-348  aligncenter" title="Web Neutrality" src="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/iStock_000009445310XSmall-292x300.jpg" alt="Web Neutrality and Google" width="292" height="300" /></a></p>
<p>The days of the free, open and neutral internet are coming to an end. More and more pressure seems to be building to create a two tier internet for traffic that pays for priority over others. In latest news Google and Verizon have hatched a deal to allow paying websites greater speeds over the net. Google have always maintained that they support net neutrality but it&#8217;s likely Google will be one of the biggest factors and perhaps biggest beneficary why a tier system will generate money for companies involved. Search engines base their rankings not only on content but speed, no business will want to see their ranking slip due to low priority traffic hence will pay large sums fo money for the privalege. At the moment website speed is a small factor for ranking but if there&#8217;s money to be made you&#8217;d pretty much guarantee search engines will include the speed of a website as an important factor. And will the greed stop at a two tier system?</p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/347/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Double clicking data grids in C#</title>
		<link>http://miskin-webdesign.com/wordpress/archives/338</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/338#comments</comments>
		<pubDate>Wed, 04 Aug 2010 23:04:15 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Programming Tutorials]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=338</guid>
		<description><![CDATA[Sometimes you may want to pass information about the row or cell after double clicking a data grid. This simple code shows how its done when the data grid is using a dataset. When double clicking a cell you need to first setup the event handler. You simply enter this in your constructor or class [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may want to pass information about the row or cell after double clicking a data grid. This simple code shows how its done when the data grid is using a dataset. When double clicking a cell you need to first setup the event handler. You simply enter this in your constructor or class load method:<br/><br/><br />
<code></p>
<div style="background-color:#f0f0f0;">
//double cell click event. dataGrid1 is the name of your grid<br />
this.dataGrid1.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGrid1_CellContentDoubleClick);
</div>
<p></code><br />
<br/><br/><br />
Followed by:</p>
<div style="background-color:#f0f0f0;">
 private void dataGrid1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)<br />
        {<br />
             //create a new datarow from the dataset and current row slected from datagrid1<br />
            DataRow myDatarow = myDataset.Tables["Customer"].Rows[dataGrid1.CurrentRow.Index];</p>
<p>// fill text box with column 0<br />
            textBox1.Text = myDatarow[0].ToString();</p>
<p>//fill text box with selected cell value<br />
             textBox2.Text =  dataGrid1.CurrentCell.Value.ToString(); </p>
<p>             //you can send the row to a new form if you change or overload the constructor<br />
             NewForm1 newForm = new NewForm1(myDatarow);<br />
        }          </p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/338/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a SSD?</title>
		<link>http://miskin-webdesign.com/wordpress/archives/324</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/324#comments</comments>
		<pubDate>Sun, 01 Aug 2010 18:41:16 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Computing Information]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=324</guid>
		<description><![CDATA[A SSD is a Solid-state Drive so called because it uses Solid-state memory. A good example is the memory stick you use to transfer files from computer to computer. It is now replacing the traditional Hard Disc Drives that have been popular for nearly 30 years. The benefit of the SSD is that it has [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://miskin-webdesign.com/wordpress/wp-content/uploads/2010/08/PCIe-SSD.jpg"><br />
</a>A SSD is a Solid-state Drive so called because it uses Solid-state memory. A good example is the memory stick you use to transfer files from computer to computer.  It is now replacing the traditional Hard Disc Drives that have been popular for nearly 30 years. The benefit of the SSD is that it has no moving parts meaning far quicker response times. When a traditional drives loads and saves it takes time for the drive to start spnning, the arms to move to the correct place and scan over the drive. They are also quieter, cooler, immune to magnets, electric discharge and radiation, more shock resistant and can be smaller in size.<br />
The original disadvantages of the SSD are almost unimportant now as prices mean they are now as affordable as HDD were only 5 years ago and many of the problems with reliability and wear leveling have been addressed. Also the latest PCIe SSD are incredibly fast reading at over 800MB/s compared to traditional HDD at around 80MB/s. Don&#8217;t get too excited though as a 250GB PCIe SSD retail at around £4000 presently while a normal SSD will cost at current prices around £2 per GB</p>
<p style="text-align: left;">
<p style="text-align: left;">To see the power of SSD and how it can be used in a RAID setup for increible performance check out this YouTube vid. In theory this can be done with HDD but it&#8217;s not as easy.</p>
<div align="center">
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/26enkCzkJHQ&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/26enkCzkJHQ&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
</div>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/324/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a blog and how can it help my company?</title>
		<link>http://miskin-webdesign.com/wordpress/archives/319</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/319#comments</comments>
		<pubDate>Sun, 01 Aug 2010 18:14:36 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=319</guid>
		<description><![CDATA[A blog or web log is a website that hold views, updates, news and events by an individual or more. It usually can be easily edited and updated without the need to be able to know PHP or other internet code. You are reading a blog at this moment. How can a blog help your [...]]]></description>
			<content:encoded><![CDATA[<p>A blog or web log is a website that hold views, updates, news and events by an individual or more. It usually can be easily edited and updated without the need to be able to know PHP or other internet code. You are reading a blog at this moment.</p>
<p>How can a blog help your company?</p>
<p>The obvious answer is that it updates your customers about your product or the market allowing customers to subscribe to your news feeds and get up to the minute information. Blogs may benefit certain types of business more especially fashion, technical or news businesses. What isn&#8217;t obvious to most companies though are the benefits you&#8217;ll recieve in search engines. To obtain to good search engine ranking you must have keyword content and a website that regulary updates. Blogs are by far the most cost effective way of updating your website with topics relevant to your business.</p>
<p>Rich Brooks has some excellent tips on blogging and how it can help your business <a href="http://www.fastcompany.com/1650142/a-blog-wont-help-your-business" target="_blank">here</a>.</p>
<p>If you would like to enquire about setting up a blog for your business speak to <a href="http://www.miskin-webdesign.com">Miskin Web Design</a> about your needs. Setting up a simple blog website for your company is cheaper than you think.</p>
<p><a href="http://miskin-webdesign.com"><img src="http://www.miskin-webdesign.com/images/miskin_webdesign_logo.png" alt="Miskin Website Design Wales"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/319/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website design in Wales</title>
		<link>http://miskin-webdesign.com/wordpress/archives/311</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/311#comments</comments>
		<pubDate>Sun, 01 Aug 2010 14:28:02 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[General News]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=311</guid>
		<description><![CDATA[Are you looking for Website Design or IT support in Wales? Miskin IT can offer a complete package including SEO work, E-Commerce and Online Database Configuration to small businesses in these areas: Cardiff Barry Penarth Pontyclun Miskin Talbot Green Llantrisant Tonyrefail Treorchy Tony Pandy Porth Pontypridd Cowbridge Bridgend Caerphilly Newport Rhondda Cwmbran Pontypool Bargoed Blackwood [...]]]></description>
			<content:encoded><![CDATA[<p>Are you looking for Website Design or IT support in Wales? Miskin IT can offer a complete package including SEO work, E-Commerce and Online Database Configuration to small businesses in these areas:</p>
<p><a href="http://miskin-webdesign.com/localWelshService.php?town=Cardiff"> Cardiff </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Barry"> Barry </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Penarth"> Penarth </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Pontyclun"> Pontyclun </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Miskin"> Miskin </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Talbot Green"> Talbot Green </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Llantrisant"> Llantrisant </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Tonyrefail"> Tonyrefail </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Treorchy"> Treorchy </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Tony Pandy"> Tony Pandy </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Porth"> Porth </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Pontypridd"> Pontypridd </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Cowbridge"> Cowbridge </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Bridgend"> Bridgend </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Caerphilly"> Caerphilly </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Newport"> Newport </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Rhondda"> Rhondda </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Cwmbran"> Cwmbran </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Pontypool"> Pontypool </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Bargoed"> Bargoed </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Blackwood"> Blackwood </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Aberdare"> Aberdare </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Merhyr Tydfil"> Merthyr Tydfil </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Porthcawl"> Porthcawl </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Neath"> Neath </a><br />
<a href="http://miskin-webdesign.com/localWelshService.php?town=Swansea"> Swansea </a></p>
<p><a href="http://miskin-webdesign.com"><img src="http://www.miskin-webdesign.com/images/miskin_webdesign_logo.png" alt="Miskin Website Design Wales" /></a></p>
<p>Please view our <a href="http://miskin-it.co.uk/website_design_wales.shtml">Website Design pages</a> for more details.</p>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/311/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Basics: Functions.</title>
		<link>http://miskin-webdesign.com/wordpress/archives/299</link>
		<comments>http://miskin-webdesign.com/wordpress/archives/299#comments</comments>
		<pubDate>Sat, 31 Jul 2010 22:40:45 +0000</pubDate>
		<dc:creator>Miskin Web Design</dc:creator>
				<category><![CDATA[Website Tutorials]]></category>

		<guid isPermaLink="false">http://miskin-webdesign.com/wordpress/?p=299</guid>
		<description><![CDATA[Functions are a fundamental part of programming and often called methods or routines. There are two types of function: one that returns a value and one that simply executes and returns nothing. You generally can add a function anywhere in your PHP code and they are global so you can put them in include files [...]]]></description>
			<content:encoded><![CDATA[<p>Functions are a fundamental part of programming and often called methods or routines. There are two types of function: one that returns a value and one that simply executes and returns nothing. You generally can add a function anywhere in your PHP code and they are global so you can put them in include files to keep your code tidy. Take this simple example:</p>
<div style="background-color:#d0d0d0";>
&lt;?</p>
<p>function printHello()</p>
<p>{</p>
<p>echo &#8216;Hello Word&#8217;;</p>
<p>}</p>
<p>printHello();</p>
<p>?&gt;</p>
</div>
<p>In this example the function is read into memory. It is only called when the program/server runs the printHello(); line then it will jump to the start of the function run the code inside and jump back to the printHello() line once it hits the close bracket. You could have put printHello() above the function and it still would have worked. How can functions help? This example is probably a waste of time to write but what if we wanted to print a list of names from a database every time a page loaded. Do we add the many lines of code manually to every page or do we create one global function and use a simple call like printNames()?</p>
<p>Functions come into their own when they return a value. </p>
<div style="background-color:#d0d0d0";>
&lt;?<br />
$c = 12;</p>
<p>//calls addThis function<br />
$add = addThis(3,7);</p>
<p>// prints 10 on screen<br />
echo $add;</p>
<p>function addThis($a,$b)<br />
{<br />
  $total = $a + $b;<br />
   return $total;<br />
}<br />
?&gt;
</p></div>
<p>You will notice that this function has $a and $b between brackets. These are called parameters and the $a and $b now take the values you sent the function when you called it (3 and 7). The function adds them up and sends the $total back. This value is stored in the variable $add.<br/><br />
Please note that all variables in a function are local and functions by default cannot see variables outside the function and vice versa. This function would not be able to see $c variable and once the function ends all the local variables within it are effectively destroyed ($a, $b, $total).<br />
To allow a function to see a variable outside its scope you must tell it to by using the global keyword.</p>
<div style="background-color:#d0d0d0";>
&lt;?</p>
<p>$c = 12;<br />
$total = 4;</p>
<p>//calls addThis function<br />
$add = addThis(3,7);</p>
<p>// prints 22 on screen<br />
echo $add;</p>
<p>function addThis($a,$b)<br />
{<br />
  global $c;<br />
  $total = $a + $b + $c;<br />
   return $total;<br />
}<br />
?&gt;
</p></div>
<p>I&#8217;ve added $total variable outside the function. This variable would not be effected in any way by the $total variable in the function as they are in different scopes. It would still remain as 4.<br/><br/></p>
<p>PHP has many built in functions that return values and one of the main ones you&#8217;ll use is the date() function. The date function has many formats and it can return different values depending on what you put in. Unfortunately you cannot overload a function in PHP but in true polymorphism style there are different ways to achieve the same results. If you don&#8217;t know what  overloading is, it doesn&#8217;t matter too much.<br />
With the date() function we can see the true power of the function:<br />
<em>(examples taken from php.net)</em></p>
<div style="background-color:#d0d0d0";>
&lt;?<br />
// set the default timezone to use. Available since PHP 5.1<br />
date_default_timezone_set(&#8216;UTC&#8217;);</p>
<p>// Prints something like: Monday<br />
echo date(&#8220;l&#8221;);</p>
<p>// Prints something like: Monday 8th of August 2005 03:12:46 PM<br />
echo date(&#8216;l jS \of F Y h:i:s A&#8217;);</p>
<p>// Prints: July 1, 2000 is on a Saturday<br />
echo &#8220;July 1, 2000 is on a &#8221; . date(&#8220;l&#8221;, mktime(0, 0, 0, 7, 1, 2000));</p>
<p>/* use the constants in the format parameter */<br />
// prints something like: Mon, 15 Aug 2005 15:12:46 UTC<br />
echo date(DATE_RFC822);</p>
<p>// prints something like: 2000-07-01T00:00:00+00:00<br />
echo date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));<br />
?&gt;
</p></div>
<p><br/></p>
<div style="background-color:#d0d0d0";>
<p>&lt;?<br />
// Assuming today is March 10th, 2001, 5:16:18 pm, and that we are in the<br />
// Mountain Standard Time (MST) Time Zone</p>
<p>$today = date(&#8220;F j, Y, g:i a&#8221;);                 // March 10, 2001, 5:16 pm<br />
$today = date(&#8220;m.d.y&#8221;);                         // 03.10.01<br />
$today = date(&#8220;j, n, Y&#8221;);                       // 10, 3, 2001<br />
$today = date(&#8220;Ymd&#8221;);                           // 20010310<br />
$today = date(&#8216;h-i-s, j-m-y, it is w Day&#8217;);     // 05-16-18, 10-03-01, 1631 1618 6 Satpm01<br />
$today = date(&#8216;\i\t \i\s \t\h\e jS \d\a\y.&#8217;);   // it is the 10th day.<br />
$today = date(&#8220;D M j G:i:s T Y&#8221;);               // Sat Mar 10 17:16:18 MST 2001<br />
$today = date(&#8216;H:m:s \m \i\s\ \m\o\n\t\h&#8217;);     // 17:03:18 m is month<br />
$today = date(&#8220;H:i:s&#8221;);                         // 17:16:18<br />
?&gt;
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://miskin-webdesign.com/wordpress/archives/299/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

