Quakenet/#php Tutorial

Note: If you opened this page from an external URL pay attention that all chapters are linked together. Be sure you also read all prior chapters of this tutorial, otherwise you will miss relevant content explained before.


  1. Welcome
  2. Requirements
  3. Layout of the tutorial
  4. Licence and download of the tutorial

1. Welcome

This is the Quakenet/#php.de tutorial about php and mysql. It covers php5.

2. Requirements

You must meet some requirements before working with this tutorial.

  1. As the php scripts generate html code you need to be able to write html code. Use a tutorial like http://www.w3schools.com/HTML/ to learn HTML if you are not familiar with it.

  2. First, you need an editor for writing the php scripts. Since you wrote html code before, you could use the editor you are already using. However, you shouldn't use any WYSIWYG editors. Use editors with syntax highlightning instead. A list of common php editors can be found in our FAQ: "I'm looking for a good PHP-editor".

  3. To actually test and run your php script you need some webspace with php support. There are enough free hosting services to test your php scripts. It's even possible to test your script on your local machine. Note that scripts may only work on your local machine, as they could try to access resources that may not be available on a remote host.

3. Layout of the tutorial

This tutorial is seperated into chapters. Each chapter contains several sections. The chapters are ordered in a linear fashion, so there is a strict order for reading the chapters in. It's really not recommended to skip a chapter (also see the warning at top of every page).

Sometimes, there are also excercises following a chapter. These are for testing your knowledge of the chapter. They usually contain knowledge questions and questions about implementing of php scripts.

A complete version of the tutorial can be found at total.html. This can be used to print the tutorial at once instead of printing each chapter. Note that this document is big.

4. Licence and download of the tutorial

We offer a download version of this tutorial with all HTML/CSS files and images.

download of tut.php-quake.net.en.tar.gz

This tutorial may of course be read from the url http://tut.php-quake.net/, and the download version can be used to read the tutorial offline. Also, the tutorial can be used for education in real life, for example at school or at college. However, the tutorial must be cited if it is used. The tutorial may be copied onto any storage medium for the pupil/students/employees. For the internet parts of the tutorial may be cited.

It is forbidden to make a copy of the tutorial (like a mirror). This applies to the online and offline version of the tutorial. If you want to mention the tutorial to your users, link to http://tut.php-quake.net/. If you have any further questions about the licence, ask an operator of the QuakeNet channel #php.

Questions about the chapter

1. How does an html document begin? <head>, <body> or <html>?

If you answered <html> you are wrong. Each html documents begins with the DOCTYPE or maybe with an xml declaration. If you didn't know that, you should read a tutorial on html first.

Next to
Copyright © to the OPs of #php/QuakeNet Valid XHTML 1.0 Strict Valid CSS!