![]() |
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. |
I still do this with Perl... old school for life :)
WG |
That will work just fine.
If you're building for long-term durability, try looking into PHP frameworks like Symfony/Laravel. It's a bit of a learning curve, but at least you'll have a solid foundation for your code when it comes time to update it. |
Quote:
|
Quote:
one note about includes. if they are called cross-domain, name them .inc not .php. otherwise the script will try to process it instead of include it. # |
Quote:
|
Quote:
|
Quote:
I think you and I are the only ones still using Perl. lol |
Quote:
|
Quote:
WG |
All times are GMT -7. The time now is 11:31 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123