include & require
include 'header.php'; pastes that file here. If the file is missing, include warns and continues. require stops the page (fatal). require_once / include_once skip if already loaded — use for config.
Good for header/footer. Modern apps also use Composer autoload for classes.
Trap: include vs require on a missing config file — require is safer. Trap: path wrong relative to the current working directory.
Exam tip
require_once 'config.php'; include 'header.php';