Web Design

(Nancy Kaufman) #1

280


Create a Basic PHP Page ........................................


2 Within the body of the
document, type the opening
PHP delimiter <?php.


3 Press.


1 Open an HTML document in
your editor.


Create a Basic PHP Page


P


HP is a relatively easy-to-learn yet extremely powerful scripting language. As a free and open-
source language, it is also extremely popular and used on many thousands of Web sites, including

some of the most-visited sites on the Web such as Facebook. PHP pages contain a mixture of HTML


for static elements and PHP for dynamic functionality. PHP code needs to be written within a PHP


delimiter, which simply surrounds the PHP block of code to separate it from the HTML on the page.


You can output code to the browser using the PHP echo statement.


1


2

Free download pdf