<?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>Web Development Tutorials &#187; PHP Functions</title>
	<atom:link href="http://www.pk-tuts.co.uk/category/php/php-functions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pk-tuts.co.uk</link>
	<description>Written By Peter Kelly</description>
	<lastBuildDate>Mon, 05 Apr 2010 19:44:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Check For Empty Values</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/check-for-empty-values?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/check-for-empty-values#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:07:12 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[check empty form field]]></category>
		<category><![CDATA[empty check]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[form field]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=252</guid>
		<description><![CDATA[In this tutorial we will create a function to check if a field is empty in either a string or an array. So this could be used to do a simple check on if a form field is left blank. I will show you an example on how to use it to check if a [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/check-for-empty-values/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect Globals</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/protect-globals?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/protect-globals#comments</comments>
		<pubDate>Mon, 30 Nov 2009 21:56:23 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[COOKIE]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[globals]]></category>
		<category><![CDATA[htmlentities]]></category>
		<category><![CDATA[is_array]]></category>
		<category><![CDATA[POST]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SESSION]]></category>
		<category><![CDATA[strip_tags]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=250</guid>
		<description><![CDATA[This tutorial is an advancement to the first tutorial (here). This tutorial is able to run every time the page loads and removes any tags and helps stop injection into globals such as $_COOKIE, $_SERVER etc.

So first we must create the function so here it is
function protection() // start function
{
	$vars = array('$_GET', '$_POST', '$_FILES', '$_SERVER', [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/protect-globals/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic PHP Template System</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/basic-php-template-system?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/basic-php-template-system#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:18:40 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Parse]]></category>
		<category><![CDATA[parse_tpl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Smarty]]></category>
		<category><![CDATA[split template]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[TPL]]></category>
		<category><![CDATA[tpl array replace]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=230</guid>
		<description><![CDATA[In this tutorial we will learn how to make a basic php template system. Which will allow us to include the template files into our php code.

So first lets define where and what our template files are called and where they are stored.
DEFINE("TEMPLATE_DIR", "/"); // Set Templates Directory
DEFINE("TEMPLATE_EXT", ".tpl"); // Set Template Files Extension
Now we [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/basic-php-template-system/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Twitter Tweet</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/update-twitter-tweet?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/update-twitter-tweet#comments</comments>
		<pubDate>Sun, 11 Oct 2009 23:19:08 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[CURL]]></category>
		<category><![CDATA[Insert Tweet]]></category>
		<category><![CDATA[Rand]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Tweet]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Update Status]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=219</guid>
		<description><![CDATA[So in my previous tutorial you have learnt how to get the latest twitter status well now we will learn how to update the twitter status with a random predefined message.

So here is the function that we will use to update the twitter.
function update_twitter($msg) // Start Update Twitter Function
{

    $username = "TWITTER [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/update-twitter-tweet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Store An Array</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/store-an-array?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/store-an-array#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:13:41 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Base64]]></category>
		<category><![CDATA[decode]]></category>
		<category><![CDATA[destore]]></category>
		<category><![CDATA[encode]]></category>
		<category><![CDATA[serialize]]></category>
		<category><![CDATA[Store]]></category>
		<category><![CDATA[unserialize]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=213</guid>
		<description><![CDATA[In this tutorial we will learn how to encrypt an array with base64 and then serialize it so we are able to store it in a database without loosing the integrity or values.

So lets start by creating 2 functions the first of which will encrypt and serialize the array.
function store_encrypt($array)
{ // Start function with function [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/store-an-array/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Status Function</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/twitter-status-function?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/twitter-status-function#comments</comments>
		<pubDate>Mon, 07 Sep 2009 17:10:03 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[File_Get_Contents]]></category>
		<category><![CDATA[SimpleXML]]></category>
		<category><![CDATA[Status]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twitter get latest status]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=146</guid>
		<description><![CDATA[Over the past few days I have been messing around with the basic Twitter API which can be found at (http://apiwiki.twitter.com/Twitter-API-Documentation). So I have decided that to create a function on how to retrieve the latest status from any account.

In the function we will use SimpleXML and file_get_contents functions which are integrated into PHP.
Below is [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/twitter-status-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force File Download</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/force-file-download?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/force-file-download#comments</comments>
		<pubDate>Sat, 29 Aug 2009 09:26:46 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[appology]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Download File]]></category>
		<category><![CDATA[downloads/]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[File Transfer]]></category>
		<category><![CDATA[file_exists]]></category>
		<category><![CDATA[Folder]]></category>
		<category><![CDATA[Force]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[is_dir]]></category>
		<category><![CDATA[ob_start();]]></category>
		<category><![CDATA[testdownload.zip]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=136</guid>
		<description><![CDATA[So you&#8217;ve got a file, but its not a .zip or .rar etc which automatically downloads through the browser, its a file such as .txt which opens up in the browser but you want it to be downloaded to the users computer automatically. Well this function will allow you to force the browser to accept [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/force-file-download/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Random Content</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/display-random-content?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/display-random-content#comments</comments>
		<pubDate>Thu, 13 Aug 2009 17:47:26 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[Display]]></category>
		<category><![CDATA[Rand]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Random Content]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=124</guid>
		<description><![CDATA[In this tutorial I will show you how to display random content.  This is something similar as to what we use for our adverts on the top of our website. So lets get started.

Random Content From Strings.
]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/display-random-content/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List Files In A Directory</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/list-files-in-a-directory?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/list-files-in-a-directory#comments</comments>
		<pubDate>Mon, 10 Aug 2009 12:30:21 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[List Directory]]></category>
		<category><![CDATA[List Files]]></category>
		<category><![CDATA[List files in a directory]]></category>
		<category><![CDATA[remove .]]></category>
		<category><![CDATA[Scandir]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=102</guid>
		<description><![CDATA[In this tutorial we will learn how to list all the files that are in a directory via PHP. This is a quick and easy technique which will also remove the . and .. from the listings. So lets get started.


And that&#8217;s it. It really is simple for more information about the scandir function visit [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/list-files-in-a-directory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Title From Site</title>
		<link>http://www.pk-tuts.co.uk/php/php-functions/get-title-from-site?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://www.pk-tuts.co.uk/php/php-functions/get-title-from-site#comments</comments>
		<pubDate>Fri, 17 Jul 2009 08:45:33 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[PHP Get Title]]></category>
		<category><![CDATA[Return Title Function]]></category>
		<category><![CDATA[Title]]></category>

		<guid isPermaLink="false">http://www.pk-tuts.co.uk/?p=27</guid>
		<description><![CDATA[BioHosts staff have created a function to allow you to retrieve the site title of any website. This will allow you to include the title in links as we have shown. Keep reading for our fully commented function to do this yourself.

function urltitle($url, $window = _blank)
{ // Start Function
    if ($url == [...]]]></description>
		<wfw:commentRss>http://www.pk-tuts.co.uk/php/php-functions/get-title-from-site/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
