Chapter 1 Introduction To PHP
Chapter 1 Introduction To PHP
Chapter 1 Introduction To PHP
Part I
Introduction to PHP
CHAPTER ONE
strengths.
Cost
PHP is one of the “P’s” in the popular LAMP stack.
The LAMP stack refers to the popular combination of
Linux, Apache, MySQL, and PHP/Perl/Python that
runs many web sites and powers many web
applications. Many of the components of the LAMP
stack are free, and PHP is no exception.
PHP is free, as in there is no cost to develop in and
run programs made with PHP.
Cost (cont’d)
Both PHP and MySQL run on a variety of
platforms, including many variants of Linux,
Microsoft Windows, and others. Running on
an operating system such as Linux gives the
opportunity for a completely free web
application platform, with no up-front costs.
Cost (cont’d)
Years of real-world experience with Linux,
Apache, MySQL, and PHP in production
environments has proved that the total cost of
maintaining these platforms is lower, many
times much lower, than maintaining an
infrastructure with proprietary, non-free
software.
Ease of Use
When compared to many other programming
languages, PHP makes it easy to develop powerful web
applications quickly. Many of the most useful specific
functions (such as those for opening a connection to an
Oracle database or fetching e‑mail from an Internet
Message Access Protocol [IMAP] server) are redefined
for you. A lot of complete scripts are waiting out there
for you to look at as you’re learning PHP.
HTML-embeddedness