View Single Post
Old 02-20-2023, 09:51 PM  
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,642
Quote:
Originally Posted by mopek1 View Post
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.
__________________

Custom Software | Server Management | Integration and Technology Solutions
https://www.2much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote