include files!!!!!!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

include files!!!!!!

Postby ohdang888 » 19. December 2007 01:15

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
ohdang888
 
Posts: 2
Joined: 16. December 2007 19:55

Postby Wiedmann » 19. December 2007 01:28

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'; ?>
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests