![]() |
Including Global.php -- Help?
: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? |
PHP Code:
|
chdir("path");
require("./global.php"); chdir("back_to_original_path"); should work. What are the errors you are getting? |
All times are GMT. The time now is 08:13 PM. |
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:
|