Page 1 of 1
include() problem
Posted: Sat Dec 07, 2002 11:24 pm
by Bert
I have my navigation bar in "includes/header.php" and i include that file to all my pages so I only have to modify one file to add more to the navigation bar. But when I add
include("
http://domain.com/includes/header.php");
to quests/index.php I get an error.
Posted: Sun Dec 08, 2002 5:04 am
by qiangxd
include("./includes/header.php");
Posted: Sun Dec 08, 2002 1:22 pm
by Bert
It still doesnt work.
Warning: Failed opening './includes/header.php' for inclusion (include_path='') in /host/r/o/-/p/o/r/ro-adven.port5.com/rsk/quests/index.php on line 3
---
Warning: Failed opening './includes/footer.php' for inclusion (include_path='') in /host/r/o/-/p/o/r/ro-adven.port5.com/rsk/quests/index.php on line 60
Posted: Sun Dec 08, 2002 1:44 pm
by hob_goblin
include("../includes/header.php");
Posted: Sun Dec 08, 2002 5:43 pm
by oldtimer
Exactly. For things in another folder up it is just /folder/page.php
For one under it is ../page.php
Or For in another folder down and then up it is ../folder/page.php.