I'm trying to use a php include of a header on a Drupal page. I have a file called 'ss_header.php' with the following HTML in it:
<div class="ss-header-container">
<div class="ss-header"><a class="btn btn-extra btn-red" href="">Register</a></div>
<div class="ss-nav cf">
<a href="#">Register</a>
<a href="#">Agenda</a>
<a href="#">Hotel</a>
<a href="#">FAQ</a>
<a href="#">Shop</a>
<a href="#">Hat District</a>
<a href="#">Download</a>
</div>
</div>
I am trying to add the following code within the body of a page that I am creating:
<?php include 'ss_header.php';?>
None of this is working. I'm getting the following error: * warning: include(ss_header.php): failed to open stream: No such file or directory in /var/www/vhosts/redhatsociety.com/includes/common.inc(1808) : eval()'d code on line 4. warning: include(): Failed opening 'ss_header.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/vhosts/redhatsociety.com/includes/common.inc(1808) : eval()'d code on line 4.*
getcwd()
) is, drupal may have changed it to something else. – Marc B