require_once 'prepend.inc';
commonHeader('PHP Tutorial');
function example($text) {
echo "
| ";
highlight_string($text);
echo " |
";
}
?>
Introductory Tutorial
PHP is a tool that lets you create dynamic web pages.
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 .php3 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 .php3 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.
Your first PHP-enabled page
Create a file named hello.php3 and in it put the following lines:
PHP Test
"; ?>