1

Topic: Including index.php from punBB directory in other .php file

Let's say I have site www.domain.com and punBB installed in www.domain.com/punBB directory, but I want to load index.php inside .php file placed in root directory on www.domain.com. The problem is, when I'm including index.php from punBB directory inside other .php file, there are problems with finding files used by punBB - it's searching for them inside ./ rather than ./punBB/ which results in errors "file not found".

My question is - how can I include index.php file in other .php file, which is placed outside punBB directory ?

Thanks for help!

Re: Including index.php from punBB directory in other .php file

Easiest way: make a copy of index.php, put it in the root directory, change PUN_ROOT, include that

3 (edited by larax 2007-01-07 19:49)

Re: Including index.php from punBB directory in other .php file

That's how I tried earlier and it didn't work. I have punBB installed in /Forum directory and index.php in root directory, I changed PUN_ROOT to ./Forum/ but it still search for punBB files inside the root directory rather than /Forum.

Re: Including index.php from punBB directory in other .php file

Where did you change PUN_ROOT?

5

Re: Including index.php from punBB directory in other .php file

I've changed it inside index.php in root directory