Articles by Iain Tench

Working with Files in PHP

Working with Files in PHP

You’re probably familiar with databases such as MySQL and Access, but data can also be stored in files. This article gives you an introduction into working with text and CSV files as well as find out information about the files (such as permissions and the last time it was modified).

Form Validation with PHP

Form Validation with PHP

Forms are the cornerstone of an interactive website. In this article you’ll construct and validate a simple form using HTML and PHP. You’ll learn some basic HTML form elements and how their data is accessible in your PHP scripts.

Learning Loops

Learning Loops

A significant advantage of computers is that they can perform repetitive tasks easily and efficiently. Instead of writing repetitive code you can write a set of statements that processes some data and then have the computer execute them repeatedly by using a construct known as a loop. This tutorial will teach you about the different loop types available in PHP.

Defining and Using Functions in PHP

Defining and Using Functions in PHP

A function is a self-contained piece of code which carries out a particular task (or function!). A key benefit of using functions is that they are reusable; if you have a task that needs to be performed a number of times, a function is an ideal solution. This tutorial will teach you how to define and use your own functions in PHP.

PHP Variables

PHP Variables

Variables are one of the key features that distinguish a programming language like PHP from markup languages such as HTML. They allow you to write code to handle input values. Read this post about variables and learn how to declare them, assign values to them, and output their values.

© 1998-2012 SitePoint Pty. Ltd. All Rights Reserved