Key Concepts

Review core concepts you need to learn to master this subject

Dynamic Webpages using PHP

PHP is a server scripting language. This server side code can be used to fill out HTML templates in order to create a complete HTML document for a visitor. This finished document is called a dynamic webpage.

Dynamic PHP webpages can deliver a custom set of assets to each visitor, unlike static pages which deliver the same set of assets to everyone.

PHP and HTML
Lesson 1 of 2
  1. 1
    PHP can be used in many ways. It can be used to write standalone programs that run in our terminal: echo “Hello, World!”; When run, the code above will output the following to the terminal: Hell…
  2. 2
    Let’s talk about the difference between a front-end language and a back-end language. HTML is a front-end language, but what exactly does that mean? When navigating to a website from our web brows…
  3. 3
    The back-ends of websites will differ depending on the needs of the site. Typically, they’ll have at least the following components: 1. A web server: a web server is a computer or program which l…
  4. 4
    We can embed PHP scripts within HTML documents with the opening tag . The PHP processor will read the entire file, evaluate any PHP, translate it into HTML, and pass it off to the web server so i…
  5. 5
    We can also incorporate more complex PHP within our scripts. Your lucky number is ${lucky_number} “; ?> The code above will be translated into HTML with a header that reads: Your lucky number is…
  6. 6
    In this lesson, you’ve begun to learn how to use PHP to generate HTML. This will become even more powerful as we learn how to get information from the client and use that to create dynamic websites…

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo