Check For Empty Values

Posted by Pete | Posted in PHP Functions | Posted on 30-11-2009-05-2008

0

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 form field is empty.
Read the rest of this entry »

Advertise On PK-Tuts

Protect Globals

Posted by Pete | Posted in PHP Functions | Posted on 30-11-2009-05-2008

0

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.
Read the rest of this entry »

Basic PHP Template System

Posted by Pete | Posted in PHP Functions, PHP Tutorials | Posted on 20-10-2009-05-2008

0

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.
Read the rest of this entry »

Update Twitter Tweet

Posted by Pete | Posted in PHP Functions | Posted on 12-10-2009-05-2008

0

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.
Read the rest of this entry »

Advertise On PK-Tuts

Store An Array

Posted by Pete | Posted in PHP Functions, PHP Tutorials | Posted on 11-10-2009-05-2008

1

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.
Read the rest of this entry »

Twitter Status Function

Posted by Pete | Posted in PHP Functions | Posted on 07-09-2009-05-2008

0

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.
Read the rest of this entry »

Force File Download

Posted by Pete | Posted in PHP Functions | Posted on 29-08-2009-05-2008

0

So you’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 it as a file to force download.
Read the rest of this entry »

Advertise On PK-Tuts

Display Random Content

Posted by Pete | Posted in PHP Functions | Posted on 13-08-2009-05-2008

0

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.
Read the rest of this entry »

Tutorials Written By Peter Kelly