<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>PHP Tutorials</title>
	<link>http://www.roughguidetophp.com</link>
	<description>An introductory tutorial to the world of PHP. Some more advanced subjects too</description>
	<lastBuildDate>Wed, 08 Oct 2008 20:29:37 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Reporting and handling errors in PHP</title>
		<description>

When developing a PHP project, whether it's a simple website or a much larger web application, it's always a good idea to take into account the potential appearance of errors in your PHP code.  An error occurs whenever PHP tries to execute an instruction which either results in an ...</description>
		<link>http://www.roughguidetophp.com/reporting-and-handling-errors-in-php/</link>
			</item>
	<item>
		<title>Classes and Object-Oriented Programming in PHP</title>
		<description>
So far throughout this tutorial, we've been looking at a method of programming called "procedural programming" in which program execution proceeds in a linear fashion, from start to finish and makes use of procedure calls. Procedures, which we've come to know as functions, allow us to execute arbitrary code segments ...</description>
		<link>http://www.roughguidetophp.com/classes-and-object-oriented-programming-in-php/</link>
			</item>
	<item>
		<title>PHP Image manipulation with GD2</title>
		<description>
One of the more surprising things you can learn about PHP is that it's actually very useful when it comes to manipulating images of varying filetypes and formats. And a good thing too, since a lot of the internet is made up of pictures!

The functionality of PHP in terms of ...</description>
		<link>http://www.roughguidetophp.com/php-image-manipulation-with-gd2/</link>
			</item>
	<item>
		<title>An Introduction to PHP</title>
		<description>

Website design with PHP
It's quite likely you've reached this page because you're interested in learning how to build your first website with PHP, or modify your existing website to make use of PHP. It's also quite likely, if you're just starting out with PHP, or programming in general, that you ...</description>
		<link>http://www.roughguidetophp.com/an-introduction-to-php/</link>
			</item>
	<item>
		<title>Working with dates and times in PHP</title>
		<description>
When developing more complex PHP sites, especially forums, discussion boards and blogs where date and time functions are important, you'll regularly encounter situations where you need to display and manipulate values based around the current date and time. PHP includes a range of functions which can help you to easily ...</description>
		<link>http://www.roughguidetophp.com/working-with-dates-and-times-in-php/</link>
			</item>
	<item>
		<title>PHP Syntax</title>
		<description>


Saving a PHP file

A PHP file is basically a text file containing all the required PHP code to run a specific program.  PHP code can be written with the use of a simple text editor, like Windows Notepad, or the more useful Crimson Editor. All you need to do ...</description>
		<link>http://www.roughguidetophp.com/php-syntax/</link>
			</item>
	<item>
		<title>Combining PHP with HTML</title>
		<description>

Now it's time to get down to the real task at hand - actually creating a working web-page using PHP. In this tutorial, I'll show you how to create a simple web-page to demonstrate how to add a little bit of dynamic jazz to an otherwise static site.
Mixing PHP with ...</description>
		<link>http://www.roughguidetophp.com/adding-php-to-html-files/</link>
			</item>
	<item>
		<title>Functions in PHP</title>
		<description>
Functions are arguably one of the most useful features of PHP. They allow a programmer to encapsulate sections of code within a structure which can then be executed from anywhere else in the program flow. Functions are instantiated by use of the function keyword, followed by the user-defined function name ...</description>
		<link>http://www.roughguidetophp.com/functions-in-php/</link>
			</item>
	<item>
		<title>Arrays in PHP</title>
		<description>
Arrays

There are times in programming where you need to keep track of many variables at once. Maybe the current time of day, the number of items in a package or the name of a certain product. These variables may all be very similar too though, you might, for example, need ...</description>
		<link>http://www.roughguidetophp.com/arrays-in-php/</link>
			</item>
	<item>
		<title>Variables in PHP</title>
		<description>
Variables are probably one of the most commonly used code constructs you'll come across while programming. If you have any experience of mathematics, especially algebra, you'll be aware of the concept of using symbols to represent unknown quantities in equations, like in the following example


x + 5 = 7;
from this ...</description>
		<link>http://www.roughguidetophp.com/variables-in-php/</link>
			</item>
	<item>
		<title>Conditional Statements in PHP</title>
		<description>
Conditional statements are used in PHP (and in any other programming language) when the programmer wishes to place a branch in the code, where a specific result will occur if, and only if, a set of conditions is matched. A real world example might be

I will go to the cinema ...</description>
		<link>http://www.roughguidetophp.com/conditional-statements-in-php/</link>
			</item>
	<item>
		<title>Loops in PHP : While and For</title>
		<description>
Introduction to Loops
Loops in PHP are very useful when you need to perform repetitions of the same code over and over again, or when you need to ensure that you iterate through all possible values of an array, for example. They come in a few different flavours, the most common ...</description>
		<link>http://www.roughguidetophp.com/loops-in-php-while-and-for/</link>
			</item>
	<item>
		<title>10 Regular Expressions you just can&#8217;t live without in PHP</title>
		<description>

[JUMPTO]

Regular expression are one of the most powerful features of PHP. They're also one of the most confusing and bewlidering if you're not familiar with their syntax. They can be used for a wide range of purposes, from validating user names to grabbing data from a website. In this article, ...</description>
		<link>http://www.roughguidetophp.com/10-regular-expressions-you-just-cant-live-without-in-php/</link>
			</item>
	<item>
		<title>Generating Secure Salted Passwords with PHP</title>
		<description>

When working with secure websites and applications, it's important to consider any areas where security could be compromised. The main area to focus on is usually the user authentication systems where the site decides whether a specific person should be granted access, usually based on a username-password combination.

Especially when authenticating ...</description>
		<link>http://www.roughguidetophp.com/generating-secure-salted-passwords-with-php/</link>
			</item>
	<item>
		<title>Pagination : Splitting data across multiple pages with MySQL and PHP</title>
		<description>

(The files used in this tutorial are available to download here)

Pagination

Sometimes when working with a MySQL powered website in PHP, we'll come across situations where we have multiple records that we wish to display to the visitor. If there are many tens, hundreds or more of these results, we might ...</description>
		<link>http://www.roughguidetophp.com/pagination-splitting-data-across-multiple-pages-with-mysql-and-php/</link>
			</item>
	<item>
		<title>A simple IP Address and Visitor Tracking tool with PHP &#038; MySQL</title>
		<description>

(Download all the files used in this tutorial here)

Visitor Tracking and Analysis

When running a website, whether it's a small personal homepage, or a large site for a company, it's useful to be able to know who is visiting your site, and what they're up to while they're there. If you ...</description>
		<link>http://www.roughguidetophp.com/a-simple-ip-address-and-visitor-tracking-tool-with-php-mysql/</link>
			</item>
	<item>
		<title>Querying Information from MySQL Tables with SELECT</title>
		<description>


Queries in MySQL


A query in MySQL is an expression which we can send to the database which returns a specific set of results based on the values and conditions we've set in the query string. In less technical terms, you can think of it as a statement which defines a ...</description>
		<link>http://www.roughguidetophp.com/querying-information-from-mysql-tables-with-select/</link>
			</item>
	<item>
		<title>Using Multiple MySQL Tables with Unique IDs, Joins and Normalization</title>
		<description>

In this tutorial I'm going to guide you through a method of database design which is invaluable when dealing with many different tables or just when dealing with a lot of data that you'd like to be able to keep organised without giving yourself too much of a headache.

Up until ...</description>
		<link>http://www.roughguidetophp.com/using-multiple-mysql-tables-with-unique-ids-joins-and-normalization/</link>
			</item>
	<item>
		<title>Generating Reports using MySQL&#8217;s Aggregate Functions - Sum(), Max(), Min() and more</title>
		<description>

Generating simple reports from a table

For this tutorial, let's take a look at some tables which contain information about a group of 8 pupils at a school, and their respective test scores




pupil_id
pupil_name
score


1
Alan
95


2
Billy
64


3
Craig
77


4
David
54


5
Edward
88


6
Fred
59


7
George
44


8
Harry
59




Here you can see a simple table of pupil names and their respective scores in a test. To load ...</description>
		<link>http://www.roughguidetophp.com/generating-reports-using-mysqls-aggregate-functions-sum-max-min-and-more/</link>
			</item>
	<item>
		<title>Creating a Simple Comments and Login System using MySQL and PHP</title>
		<description>
Now that we've got a simple understanding of how to perform SELECT, INSERT and UPDATE MySQL queries (and if not, have a quick review from the last couple of tutorials) we can now work on building ourselves a very simple PHP application to accept user data and save it into ...</description>
		<link>http://www.roughguidetophp.com/creating-a-simple-comments-and-login-system-using-mysql-and-php/</link>
			</item>
</channel>
</rss>
