Beginner

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.

PHP String Handling Functions

PHP String Handling Functions

PHP has a vast selection of built-in string handling functions that allow you to easily manipulate strings in almost any possible way. Some let you manipulate the case (upper and lower), some let you replace words, some let you cut a string down to size, and there’s still a whole slew more. In this article you’ll learn how to use some of the most commonly used string functions.

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.

A Tour of PHP.INI

A Tour of PHP.INI

Anyone who has a server using PHP has undoubtedly heard of the php.ini file – it’s the configuration file used to control and customize PHP’s run-time behavior. In this article you’ll learn about some of the more important settings in it you might want to tweak.

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.

Practicing Regular Expressions with Search and Replace

Practicing Regular Expressions with Search and Replace

One of the things that make it difficult to grasp regex in the beginning is the small number of times you have a chance to use them in your code, which in turn limits the amount of practice you have using them. Professionals in any capacity, be it sports, entertainment, or development always practice. This article will walk you through a series of exercises designed to help you practice using regex.

PHP Sessions

PHP Sessions

A session is the logical link between page requests made by the same user during his visit. In this article, Callum gives you the low down on using sessions in PHP – how to create them, how to destroy them, and how to make sure they remain secure.

Error Handling in PHP

Error Handling in PHP

Errors are the most common event a developer faces when programming. To help reduce the number of errors in your code, and to mitigate their effects, proper error handling is essential in your web application. This article will teach you about PHP’s built-in error reporting levels, using Exceptions, and how to handle errors with custom handlers.

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