View Single Post
Old 02-20-2023, 01:31 PM  
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,088
Are php Includes considered current for website use Still?

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.
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote