Page 1 of 1

include files!!!!!!

PostPosted: 19. December 2007 01:15
by ohdang888
hey.
i am using include files a lot.
but to save space, i don't want to include the same include files in every folder, (such as menu and footer)

so how to i command the php to look back one folder

for example
<?php include("footer.php"); ?>

hwo would you say "that file is one folder back"
i tried <?php include("*\footer.php"); ?>, but thats not working

PostPosted: 19. December 2007 01:28
by Wiedmann
hwo would you say "that file is one folder back"
i tried <?php include("*\footer.php"); ?>, but thats not working

One folder back is ".." (in every OS):
Code: Select all
<?php include '../footer.php'; ?>