PDA

View Full Version : Including Global.php -- Help?


Koutaru
04-27-2003, 10:29 PM
:rolleyes: I maybe just doing everything wrong but how do I include global.php from another folder

example

include
http://www.domain.com/global.php
and
http://www.domain.com/test/global.php

in a file located
http://ww.domain.com/folder/file.php

I tried:

chdir(../test);
require('global.php');

to get it to work from /test folder

I tried:

$forumpath = '/path/to/forum/main';
chdir($forumpath);
require('global.php');

Nothing works :surprised: Can somebody help?

filburt1
04-28-2003, 01:31 AM
require("../global.php");

rake
04-28-2003, 09:04 PM
chdir("path");
require("./global.php");
chdir("back_to_original_path");

should work. What are the errors you are getting?