Absolute Path??
Posted: Tue Oct 20, 2009 7:10 am
hi! I have a website with like 3 directories..
1.root
2.level1
3.level2
is there a way I can only have 1 header and footer? currently I have a set of 3: like below
(relative url)
root -- src="images/image.gif"
level1 -- src="../images/image.gif"
level2 -- src="../../images/image.gif"
root -- href="index.php"
level1 -- href="../index.php"
level2 -- href="../../index.php"
I don't think using absolute url (http://www.domain.com/) will be a good idea.. is there any other way?
like define ('ABSOLUTEPATH./') i'm not sure of this code..
thanks a lot!
1.root
2.level1
3.level2
is there a way I can only have 1 header and footer? currently I have a set of 3: like below
(relative url)
root -- src="images/image.gif"
level1 -- src="../images/image.gif"
level2 -- src="../../images/image.gif"
root -- href="index.php"
level1 -- href="../index.php"
level2 -- href="../../index.php"
I don't think using absolute url (http://www.domain.com/) will be a good idea.. is there any other way?
like define ('ABSOLUTEPATH./') i'm not sure of this code..
thanks a lot!