Correctly include php header in all 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:33 UTC
Read the original article
Hit count: 317
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