PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I've created a navigation bar that's held in it's own PHP file that I want to be displayed on each other page of my website but I'm having trouble outputting the file as PHP code rather than just echoing the contents of the file.
I get that output when I use
But it displays the contents of nav.php and I want it to use the code from nav.php so it leaves me only having to update 1 file and the changes are seen on all pages.