PHP on OS/2
Tom Melendez
Warpstock 2005
Agenda:
- What is PHP?
- How it Works
- Some History
- Language and Syntax
- Database Access
- Installation and Configuration
- Security and Performance
- PEARs and PECLs
- 3rd Party Tools
- Q+A
[any material that should appear in print but not on the slide]
What is PHP?
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
Your First Stop for PHP Information:
http://www.php.net
[any material that should appear in print but not on the slide]
How it Works:

When requested by the client, the PHP file is read off of the disk, interpreted, and sent to the browser as pure HTML.
No PHP code will appear in the browser if the user chose 'View Source', because that PHP code has already been interpreted and removed.
[any material that should appear in print but not on the slide]
An Example - Enabling a Web Form
<html><head><title>Form Example</title></head>
<body><h1>My Example Form</h1>
<form action="form.php" method="POST">
Name: <input type="text" name="name">
Age: <input type="text" name="age">
</form>
</body></html>
|
[any material that should appear in print but not on the slide]
Perl Version
[any material that should appear in print but not on the slide]
PHP Version
<html><head><title>Form Example</title></head>
<body><h1>My Example Form</h1>
<form action="form.php" method="POST">
Name: <input type="text" name="name">
Age: <input type="text" name="age">
</form>
<?if($_POST['name']):?>
Hi <?echo $_POST['name']?>, you are <?echo $_POST['age']?> years old
<?endif?>
</body></html>
|
[any material that should appear in print but not on the slide]
PHP Output
My Example Form
Hi Tom, you are 29 years old