The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Requiring Global from within 2 directories?
Hi, I was wondering how I would require the global in the forum root from a 2 folders within there
Ex: /forums/folder1/folder2 I have a php code there that needs to include global.php. I tried require("../../global.php"); But it doesn't work. Anyways, thanks in advance Regards Arunan |
#2
|
|||
|
|||
You will probably want to use an absolute path rather than a relative one.
From a shell or FTP, go to the directory that global.php is in and type pwd. It will give you something like: /home/www/forumdir So then you would use: require("/home/www/forumdir/global.php"); That should work as far as I know. |
#3
|
||||
|
||||
thanks, I used a chdir
Thanks Arunan |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|