The text book I am using has 1 page on include files and no examples. I understand how to call the include file and that when I name it I should use the inc_ prefix...
Where I am lost is what needs to be inside the include file? What can I omit from the file? Do I just write it like it is part of the .php file I am working on
Example...I want to use a include file for a list of links.
Starting File
<html>
<head>
</head>
<body>
<?php>
include 'links.php';
?>
</body>
</html>
Include File
<nav>
<ul>
<li><a href="link1.htlm">Link 1</li>
<li><a href="link2.htlm">Link 2</li>
<li><a href="link3.htlm">Link 3</li>
</ul>
</nav>
Do I need anything else in the include or would this work?