PHP require directory


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. header.php:
  2.  
  3. <div id="nav-wrapper">
  4. <?php require(__DIR__ . '/main-nav.php'); ?>
  5. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.