Locked lesson.
About this lesson
How to include things from other files in your PHP program.
Exercise files
Download this lesson’s related exercise files.
Include Function.docx59 KB Include Function - Solution.docx
59 KB
Quick reference
Include Function
How to include things from other files with the Include function.
When to use
Any time you want to include something from another file, you might use the Include function.
Instructions
To use the include function:
include 'filename.php';
If there's a problem, include will give you a warning error message, it won't crash completely.
Hints & tips
- Include things from other files with the include function.
Lesson notes are only available for subscribers.