PHP  
downloads | documentation | faq | getting help | | php.net sites | links 
search for in the  
previousO que o PHP pode fazer?Your first PHP-enabled pagenext
Last updated: Thu, 18 Jul 2002
view this page in Printer friendly version | English | Chinese | Czech | German | Korean

Cap�tulo 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 dinamic 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.

User Contributed Notes
A simple tutorial
add a note about notes
There are no user contributed notes for this page.
previousO que o PHP pode fazer?Your first PHP-enabled pagenext
Last updated: Thu, 18 Jul 2002
show source | credits | stats | mirror sites:  
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Mon Jul 29 00:09:02 2002 CEST