centralize html menu with includes
centralize html menu with includes
Out of context: Reply #8
- Started
- Last post
- 11 Responses
- Stugoo0
you could use absolute paths :
if you put your menu navigation in a folder called "_includes"
following:
the absolute path for a file in domian.com would be/_includes/navigation.php
would be
<?php include("/_includes/navigation.php"); ?>
read :
http://webdesign.about.com/od/be…
or
http://en.wikipedia.org/wiki/Pat…)basically in relative paths "../" means "go up one level"
- if you wanted to be smart you could use a variable for the "../" and attach it to you URLSStugoo