Introduction of PHP "Personal Home Page" from Scratch specially those people want to learn programming with open source technology.
Introduction of PHP "Personal Home Page" from Scratch specially those people want to learn programming with open source technology.
PHP originally
stood for “Personal home Page” as it was created in 1994 by Rasmus Lerdorf to
track the visitors to his on line resume. As its usefulness and capabilities grew
(and as it started being used in more professional situations). It came to mean
“PHP: Hypertext Coprocessor.”
According to
the official PHP Web site, found at WWW.php.net. PHP is “an HTML embedded
scripting language”. It’s a complex but descriptive definition, whose meaning I
will explain.
To say that
PHP is HTML embedded means that PHP can be interspersed within HTML, which
makes developing dynamic Web sites more accessible. Also PHP is a scripting
language, as opposed to a programming language. PHP is designed to do something
only after an event occurs for example, when a user submits a form or goes to a
URL.
I should add
to this definition by stating that PHP is a server-side, cross-platform
technology, both factors being important considerations. Server-side refers to
the fact that everything PHP does occurs on the server (as opposed to on the
client, which is the Web site viewer’s computer). Its cross-platform nature
means that PHP runs on most operating systems. Including, Windows, Linux, UNIX
(and its many variants), and Macintosh. More importantly, the PHP scripts written
on one server will normally work on another with little or no modifications.
PHP 5 or
later version most focus on object-oriented programming should not undermine
the content or examples here (PHP is generally developed to ensure backward compatibility).
Obviously, it
would be preferable to work on a server using the latest version of PHP, but
since you cannot always control these things. In-case where recently added
functions or variables are begin used, notes are made indicating alternative
solutions.
Why use PHP?
Put simply,
when it comes to developing dynamic Web sites.PHP is better, faster and easier
to learn than the alternatives. What you get with PHP is excellent performance,
a tight integration with nearly every database available,stability,potability
and a nearly limitless feature set due to its extensibility. All of this comes
at no cost (PHP is open source) with a very manageable learning curve. PHP is
one of the best marriages, I have ever seen between the ease with which beginning
programmers can being using it and the ability for more advanced programmers to
do every thing they require.
Finally, the
proof is in the pudding PHP has seen an exponential growth in use since its
inception recently overtaking ASP as the most popular scripting language being
used today. It’s the most requested modules for Apache (the most use Web
server), and by the time this book hits the shelves, PHP will be on about 20
million domains.
How PHP Works?
As previously
stated, PHP is a server-side language, which means that the code you write in
PHP resides on a host computer that serves web pages to the requesting
visitors(you, the client, which your Web browser).
When a
visitor goes to a Web site written in PHP the server reads the PHP code and
then processes it according to its scripted directions. PHP code tells the
server to send the appropriate data-HTML code-to the web browser, which treats
it as it would a standard HTML page.
This differs
from a static HTML site where, when a request is made, the server merely sends
the HTML data to the Web browser and there is no server-side interpretation
occurring. Hence to the end user and the Web browser there is no perceptible
difference between what home.HTML and home.php may look like, but how that
page’s content was created will be significantly different.