PHP  
downloads | documentation | faq | getting help | mailing lists | | php.net sites | links | my php.net 
search for in the  
<Een korte geschiedenis van PHPYour first PHP-enabled page>
view the version of this page
Last updated: Tue, 22 Apr 2003

Hoofdstuk 2. A simple tutorial

Here we would like to show the very basics of PHP in a short simple tutorial. This text only deals with dynamic webpage creation with PHP, though PHP is not only capable of creating webpages. See the section titled What can PHP do for more information.

PHP-enabled web pages are treated just like regular HTML pages and you can create and edit them the same way you normally create regular HTML pages.

What do I need?

In this tutorial we assume that your server has support for PHP activated and that all files ending in .php are handled by PHP. On most servers this is the default extension for PHP files, but ask your server administrator to be sure. If your server supports PHP then you don't need to do anything. Just create your .php files and put them in your web directory and the server will magically parse them for you. There is no need to compile anything nor do you need to install any extra tools. Think of these PHP-enabled files as simple HTML files with a whole new family of magical tags that let you do all sorts of things.

Let's say you want to save precious bandwidth and develop locally. In this case, you'll want to install a web server, such as Apache, and of course . You'll most likely want to install a database as well, such as . You can install these individually or a simpler way is to that automatically installs all of these with just a few mouse clicks. It's easy to setup a web server with PHP support on any operating system, including Linux and Windows. In linux, you may find helpful for locating RPMs.



User Contributed Notes
A simple tutorial
add a note add a note
Matthew at ggraham2 dot fsnet dot co dot uk
27-Aug-2002 09:34

Bear in mind that PHP is a service that the web server has to provide. Most free web-page hosts, and ISPs giving space will not support PHP.
goatguy at geek dot com
13-Jan-2003 06:36

[[[Editors note: This is specific to certain web servers such as IIS or PWS when runnin as CGI.  See this faq:


]]]
*** 1st time WINDOWS *** and force-cgi issues...
Simply put, you need to go into PHP.INI (found either in \windows, or \win32, depending on O/S) and uncomment the line "cgi.force_redirect" and set it to ***ZERO***.  Then, suddenly "hello.php" works for you.

add a note add a note

<Een korte geschiedenis van PHPYour first PHP-enabled page>
 Last updated: Tue, 22 Apr 2003
show source | credits | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by: /
Last updated: Mon May 26 17:09:40 2003 CEST