How is it possible to include a php file in the header of a phpbb3 html file?

advertisements

I am trying to include the header of my website in the header of the phpbb3 html file using

<!-- INCLUDEPHP ../../../../header.inc -->

I am using an inc file which doesn't work, it works when I use

<!-- INCLUDE ../../../../header.inc -->

but the php doesn't. I have also tried creating a php file called header.php which has the line

<?php include("header.inc"); ?>

but this does nothing! How can I get this to work!


You need to use an absolute path

<?php include('/home/usr_name/www/includes/inc/header.inc') ?>

or a relative path

  <?php include('../../../../header.inc') ?>