This topic is locked

Header.php

4/23/2008 10:35:47 AM
PHPRunner General questions
M
mmponline author

Is it possible to save the header.php under another folder than /include folder of the project.
I've done it and then changed the path to Eg. www.mydomain.co.za/header.php in the code of the list and other pages. It does not seem to work.
It would be nice to be able to draw it from the root folder for Eg. as we then don't have to change path details of the header used in the rest of the site.
Thanks for your help!

Sergey Kornilov admin 4/23/2008

Instead of
{include_if_exists file="include/header.php"}
you can use
{include_if_exists file="/header.php"}

M
mmponline author 5/15/2008

I've tried this.
Firstly it seems to break as it does not show the yellow header block.

Secondly the header does not display.
I need to place the header under the root directory

IOW

http://www.thedomain/header.php
The project header lies under:

http://www.thedomain/dbfolder/include/header.php