Locked lesson.
About this lesson
Understanding the Fundamentals of PHP and the client/server relationship.
Exercise files
Download this lesson’s related exercise files.
How Does PHP Work?.docx58.6 KB How Does PHP Work? - Solution.docx
58.7 KB
Quick reference
How Does PHP Work?
PHP is a server-side scripting language.
When to use
PHP is great for front-end web development.
Instructions
PHP code is written on a web page, but executed on the server.
PHP code is written inside a PHP tag that looks like this:
<?php
?>
<?php is the openeing tag, and ?> is the closing tag.
PHP statements end in a semi-colon.
Hints & tips
- PHP is a server-side scripting language.
- PHP code goes inside this tag: <?php ?>
- PHP statements end with a semicolon
Lesson notes are only available for subscribers.