Quote:
Originally Posted by mopek1
If I build a php website and use code like this:
<?php include 'includes/navbar.php';?>
... so that when I want to make a change in the navbar across thousands of pages, the entire site is updated by changing one file only in the /includes folder.
Is that current or is everyone onto a different version of php, or different code etc...?
If I build a new site I want it to be able to adapt to any future change without having to individually change each page (or worse, rebuild the site) which would take forever.
Thanks.
|
Yes, and doing it this way makes it really easy to keep all of the pages of your site consistent. I use includes for the nav bar / menus, footers, and most of the header. It saves a ton of time too.