Topic: Changing PUN_ROOT

I need a little help with define('PUN_ROOT', './');

Lets say I make a new folder in my forums folder, I need to change the PUN_ROOT.
For example:
www.forums.com/forums = define('PUN_ROOT', './');
www.forums.com/forums/folder = ?

What would I need to change the PUN_ROOT so it sees all the files in the down folder?

Thanks in advance!

Re: Changing PUN_ROOT

define('PUN_ROOT', '../');

Re: Changing PUN_ROOT

Smartys wrote:

define('PUN_ROOT', '../');

I tried that, but it's still not working..
Do I need to change anything else?

Re: Changing PUN_ROOT

What errors do you get?

Re: Changing PUN_ROOT

Warning: main(include/common.php): failed to open stream: No such file or directory in /home2/cash/public_html/folder/index.php on line 3

Warning: main(include/common.php): failed to open stream: No such file or directory in /home2/cash/public_html/folder/index.php on line 3

Fatal error: main(): Failed opening required 'include/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/cash/public_html/1daily/index.php on line 3

Re: Changing PUN_ROOT

erm, you did do
require PUN_ROOT.'include/common.php'
right?

7 (edited by The_Fiddler 2005-06-14 06:13)

Re: Changing PUN_ROOT

I will add to this thread if it's OK as I have a question regarding the PUN_ROOT, sorta. I have Punbb setup to be a frontend sorta to my domain, so when you go to http://www.mydomain.com your in Puns hands so to spreak smile. I have the pun files, bar index.php, behind the domain root, so my PUN_ROOT is:

('PUN_ROOT', '../punfiles/');

It works fine etc when you go to http://www.mydomain.com. It's when you are trying to click on links, that exist behind the root, which they all will and do, bar index.php. I was wondering, if anyone has any idea's. I DON'T want to move the needed files forward of the root, but rather be left behind the root.

In answer also to the persons question, which appears your going forward of the root, of the domain so it would be:

('PUN_ROOT', './folder/');

It will also be dependant on the http://www.whatever.com/forum is in the board config as well.


But anyway one dot and a slash and folder name is forward, 2 dots and a slash is backwards

eg:

1: ../../../folder is = to going back a folder, back a folder,  back a folder and into folder.

2: ./folder/folder/folder/folderlast is = to going forward a folder, forward a folder, forward a folder and into folderlast

I probably lost ya, but I am sure someone can explain the lost bits to ya.

Re: Changing PUN_ROOT

you could use absolute links, and either use them for the links that go out of that folder, or define base.css and do the opposite