Quakenet/#php Tutorial

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

Start

  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 deals with a installed php version of php5.

2. Requirements

You must met some requirements before working with this tutorial.

  1. As the php scripts generate html code you must 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. You need an editor for writing the php scripts. Since you wrote html code before you can maybe use the editor you are already using. However, you shouldn't use any WYSIWYG editors but editors with syntax highlightning. A list of common php editors can be found in our FAQ at I'm looking for a good PHP-editor.

  3. To actually test and run your php script you need a webspace with php support. There are enought 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 for your local machine as you try to access clients parts which may not possible on a remote host.

3. Layout of the tutorial

This tutorial is seperated in chapters. Each chapter contains several sections. All chapters are ordered inline, so there is a strict order how to read the chapters. It's really not recommended to skip a chapter (also see the warning at top of every page).

There may exists excercises after each chapter. These are for testing your knowledge of the chapter. They may contain knowledge questions and questions about solutions of php scripts.

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 be of course read from the url http://tut.php-quake.net/ and the download version can be used to read the tutorial while offline. Also, the tutorial can be used for education in real life like at school or college. However, the tutorial must be cited if it is used. The tutorial may be copied on any storage for the pupil/students/employees. For the internet parts of the tutorial may be cited.

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

Questions about the chapter

1. How does a html document begins? <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 about html first.

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