title: Include in bootstrap
body: <p><img src="https://i.stack.imgur.com/Exu68.png" alt="This is how it looks when everything is in one file">
  index.php file</p>
  
  <pre><code>&lt;link href="css/bootstrap.min.css" rel="stylesheet"/&gt;
      &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;div class="head"&gt;
      &lt;?php include_once("menu.php"); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>menu.php file</p>
  
  <pre><code>&lt;nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
     &lt;div class="navbar-header"&gt;
        &lt;button type="button" class="navbar-toggle" data-toggle="collapse" 
           data-target="#menu"&gt;
           &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
           &lt;span class="icon-bar"&gt;&lt;/span&gt;
           &lt;span class="icon-bar"&gt;&lt;/span&gt;
           &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;/button&gt;
        &lt;a class="navbar-brand" href="index.php"&gt;Silverado&lt;/a&gt;
     &lt;/div&gt;
     &lt;div class="collapse navbar-collapse" id="menu"&gt;
        &lt;ul class="nav navbar-nav"&gt;
           &lt;li&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt;
           &lt;li&gt;&lt;a href="movies.php"&gt;Movies&lt;/a&gt;&lt;/li&gt;
           &lt;li class="active"&gt;&lt;a href="price.php"&gt;Price List&lt;/a&gt;&lt;/li&gt;
           &lt;li&gt;&lt;a href="contact.php"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
     &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>This is my code for displaying menu in webpage using bootstrap. This works fine. But i want to keep this bit of code in different file and include it in my webpage using include_once tag of php. If I put this code in different file and include it in my webpage it doesnt display the menu at all if i run my index.php page. Please help!</p>