PHP Introduction
PHP Introduction
• PHP can handle forms, i.e. gather data from files, save data to a file, thru email you
can send data, return data to the user.
• You add, delete, modify elements within your database thru PHP.
• Access cookies variables and set cookies.
• Using PHP, you can restrict users to access some pages of your website.
• It can encrypt data.
Characteristics of PHP
• Five important characteristics make PHP's practical nature possible:
• Simplicity
• Efficiency
• Security
• Flexibility
• Familiarity
"Hello World" Script in PHP
• To get a feel of PHP, first start with simple PHP scripts. Since "Hello, World!"
is an essential
• example, first we will create a friendly little "Hello, World!" script.
• As mentioned earlier, PHP is embedded in HTML. That means that in
amongst your normal
• HTML (or XHTML if you're cutting-edge) you'll have PHP statements like
this:
<html>
<head>
<title>Hello World</title>
<body>
<?php echo "Hello, World!";?>
</body>
</html>
• This section will guide you to install and configure PHP over the following
four platforms:
• PHP Installation on Linux or Unix with Apache
• PHP Installation on Mac OS X with Apache
• PHP Installation on Windows NT/2000/XP with IIS
• PHP Installation on Windows NT/2000/XP with Apache