PHP Structure and Syntax
PHP Structure and Syntax
Chapter 5
PHP Structure and Syntax
Basic PHP Scripts
• Embedded language refers to code that is
embedded within a Web page (HTML/XHTML
document)
• PHP code is typed directly into a Web page as
a separate section
• Server recognizes embedded script and
executes
• A Web page containing PHP code must be
saved with an extension of .php to be
processed by the scripting engine
• PHP code is never sent to a client’s Web
browser; only the output of the processing is
sent to the browser
Basic PHP Scripts
References :