PHP is a widely used scripting language for building dynamic web pages. It allows non-technical users to easily create interactive web content. PHP code is processed on the server-side and returns fully rendered HTML to browsers. The document discusses how PHP works, its history and uses, compilers that optimize PHP code, and concludes that PHP is a powerful tool for creating dynamic websites.
4. INTRODUCTION
PHP is a powerful tool for making dynamic and
interactive Web pages. PHP is the widely-used, free,
and efficient alternative to competitors such as
Microsoft's ASP and non-technical users can easily
learn a few handy tricks to make their web pages
easier to manage, and more useful. When creating a
PHP enhanced pages, there are a few things we must
remember. PHP can contain a mixture of HTML and
PHP code. PHP is a server-side technology, and does
not work in a browser. The filename must have .php
extension.
7. When a user navigates in her browser to a page that ends
with .php extension, the request is sent to a web server,
which directs the request to the PHP interpreter.
As shown in the diagram below, the PHP interpreter
processes the page, communicating with file systems,
databases, and email servers as necessary, and then
delivers a web pages, to the web server, to return and to the
browser.
8. COMPILERS
The PHP language was originally implemented as
an interpreter. Several compilers have been developed
which decouple the PHP language from the interpreter.
Advantages of include better execution speed, static
analysis, and improved interoperability with code written in
other languages. PHP compilers of note include Phalanger,
which compiles PHP into CIL byte-code, and Hip Hop,
developed at Facebook and now available as open source,
which transforms the PHP Script into C++, then compiles it,
reducing server load up to 50%.
9. CONCLUSION
PHP is a great tool for writing dynamic web pages. Non-
technical users can easily learn a few handy tricks to make
their web pages easier to manage, and more useful.
Because its syntax resembles most C-like languages, any
Computer Science student is able to learn it very quickly.
When creating a PHP enhanced pages, there are a few
things we must remember.
PHP is a server-side technology, and does not work in a
browser.
The filename must have .php extension.
PHP enhanced pages can contain a mixture of HTML and
PHP code.