include file
Posted: Fri Apr 13, 2007 10:10 am
hi there me again 
is there a specific way to make the include file take the file from a root directory ,
lets say i have this
root/members
i have a header.php in the root directory , and then i have a page in the members folder that needs to link to the root
like this :
now this page is in the members folder, i want that include to take the header.php file from the root .... i tried the
include '../header.php'
but it doesnt work is there another way to get the include to go to the root to obtain that file ?
Elaine
thanks
is there a specific way to make the include file take the file from a root directory ,
lets say i have this
root/members
i have a header.php in the root directory , and then i have a page in the members folder that needs to link to the root
like this :
Code: Select all
<?php
include 'header.php';
//members page
?>include '../header.php'
but it doesnt work is there another way to get the include to go to the root to obtain that file ?
Elaine
thanks