Kovu's terrasco.net
 Autologin
Kovu's PHP Tutorial: Introduction
 
Author: Kovu | Date: Dec 18 2008
 
This is a PHP-tutorial, not a function-reference or manual. Hence, what you find on here isn't necessarily specific topics that would cover all knowledge on a certain matter. This tutorial is supposed to lead its users through the process of learning how to code in PHP. Further, this has to be seen as a work in progress. 
 
Most users will make the connection webdesign, webservers and website when they read or hear PHP. Yet that isn't necessarily the truth. PHP can be and is run from commandline as well, same as there exist extensions to code GUI-applications (PHP-GTK). Hence, many users expect to learn how to 'design' websites by a 'graphical/visual meaning' now... yet that isn't the case, as PHP simply generates output like any other programming language and comes with some great additional functionality that serves internet-matters. Output may contain HTML, in order to display website-layouts when being accessed through webbrowsers, but it doesn't when being run on the commandline or as GUI-application. In this tutorial we will hardly ever output any HTML, except it's really about web-related matter, and I don't intend to teach you HTML with it. 
 
The most ideal case for working with this tutorial would be to have PHP locally installed on your computer (to be run from both, commandline and local server). This way you'd perfectly see how the syntax works, what the outputs are - and what differences exist between webserver and commandline. However, it also works with PHP on an external server - but it might be a bit nasty with uploading and reuploading scripts, as well as with recognizing the direct output of PHP rather than the 'HTML'-interpretation of your webbrowser.  
 
The idea behind the navigation structure in this tutorial is that you begin with the first page of the Syntax-section (in the navigation I use 'SX' as abbreviation) and then work down through the following pages, step-by-step. I suggest that you rewrite and experiment around with all examples, hence, that you don't only do the exercises that come with this tutorial... this will help you to understand how the things work.
Requirements
 
Minimum: 
  • PHP 4 or higher installed on an external server
  • ASCII-Text-Editor
 
 
Recommended: 
  • PHP 4 or higher, locally installed
  • Webserver (such as Apache), locally installed
  • PHP-GTK 2 (for GUI-application development), locally installed
  • Development Environment with advanced code editor (such as Eclipse)
 
 
You can download PHP from: 
http://www.php.net/downloads.php 
 
You can download PHP-GTK from: 
http://gtk.php.net/download.php
Proceed to the Tutorial