This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:web_development:layout:php [2022/03/21 12:15] mag [PHP] |
en:web_development:layout:php [2023/08/16 09:33] (current) |
||
---|---|---|---|
Line 244: | Line 244: | ||
==== Include ==== | ==== Include ==== | ||
* Before we get into the depths of PHP, let's start with something simple, but very powerful in its time-saving capabilities. | * Before we get into the depths of PHP, let's start with something simple, but very powerful in its time-saving capabilities. | ||
- | * Imagine that you have twenty pages (or more) to manage rather than just the three we have in this folder so far. Now imagine that your boss / client has just asked you to change the company phone number, which appears at the bottom of every page. You'd have to make the change twenty times, then check every single page to make sure you'd done it properly. That's how mistakes | + | * Imagine that you have twenty pages (or more) to manage rather than just the three we have in this folder so far. Now imagine that your boss / client has just asked you to change the company phone number, which appears at the bottom of every page. You'd have to make the change twenty times, then check every single page to make sure you'd done it properly. That's how mistakes |
* Instead, wouldn' | * Instead, wouldn' | ||
* Create a new file called ' | * Create a new file called ' | ||
Line 409: | Line 409: | ||
include(" | include(" | ||
?></ | ?></ | ||
- | * Again, notice that we've added < | + | * Again, notice that we've added < |
* Upload both these files to the server and check that they look correct. | * Upload both these files to the server and check that they look correct. | ||
* Also notice the ' | * Also notice the ' |