how to correctly include php header in all the pages.
Posted
by serhio
on Stack Overflow
See other posts from Stack Overflow
or by serhio
Published on 2010-04-09T23:20:47Z
Indexed on
2010/04/09
23:23 UTC
Read the original article
Hit count: 466
I would include a php header (mysite.com/header.php
) in all the pages from a site.
How to do it properly?
There are relative links:
<?php include_once 'header.php'; ?>
<?php include_once '../header.php'; ?>
And this didn't help:
<?php include_once '/header.php'; ?>
© Stack Overflow or respective owner