![]() |
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 |
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. |
thanks, I used a chdir :)
Thanks Arunan |
All times are GMT. The time now is 03:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|