Hey,
Ok i got a problem, that is pretty much simple but it is killing me.
I have 2 folders:
36Drew
and Division1
There is a file in division1(nav.php) that I want to include in index.php in 36Drew folder. How can I link it? I tried giving the direct adress(url) didnt work. Then I gave: www/Division1/nav.php didnt work. So I am bit lost.
Thanks for your help,
Ara
Include PHP
Moderator: General Moderators
Re: Include PHP
Have you tried include() or include_once() ?
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Include PHP
when using include etc... use "../" to navigate up one level. If desired file is two levels up then use "../../"
-
Aravinthan
- Forum Commoner
- Posts: 84
- Joined: Mon Jan 28, 2008 6:34 pm
Re: Include PHP
I tried it aceconcepts, but it doesnt work.
Re: Include PHP
Code: Select all
include "../Division1/nav.php";