PHP Manual
About this Manual
This manual is written in SGML using the DocBook DTD, using DSSSL (Document Style and Semantics Specification Language) for formatting. The tools used for formatting HTML, TeX and RTF versions are Jade, written by James Clark and The Modular DocBook Stylesheets written by Norman Walsh. PHP’s documentation framework was assembled by Stig Sæther Bakken.
Chapter 1. Introduction
Table of Contents
What is PHP?
What can PHP do?
A brief history of PHP
What is PHP?
PHP (officially “PHP: Hypertext Preprocessor”) is a server-side HTML-embedded scripting language.
Simple answer, but what does that mean? An example:
Example 1-1. An introductory example
<html>
<head>
<title>Example</title>
</head>
<body>
<?php echo “Hi, I’m a PHP script!”; ?>
</body>
</html>
Notice how this is different from a CGI script written in other languages like Perl or C — instead of writing a program with lots of commands to output HTML, you write an HTML script with a some embedded code to do something (in this case, output some text). The PHP code is enclosed in special start and end tags that allow you to jump into and out of PHP mode.
What distinguishes PHP from something like client-side Javascript is that the code is executed on the server. If you were to have a script similar to the above on your server, the client would receive the results of running that script, with no way of determining what the underlying code may be. You can even configure your web server to process all your HTML files with PHP, and then there’s really no way that users can tell what you have up your sleeve.
Download PHP Manual
Related PDF Manuals Guide:
CSS Guide for Macromedia Dreamweaver
HTML/XHTML, CSS, and Dreamweaver Manual
HTML Scripting Guide for QuickTime
Custom CSS Integration Manual
Fire Helmet Owner’s Guide
SPAM Protection Guide
Oracle HTML DB Installation Guide
Beginner’s Guide to HTML