MyBB Community Forums

Full Version: including functions problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when i try to include require_once "/forum/global.php";

Warning: require_once(.forum/global.php) [function.require-once]: failed to open stream: No such file or directory in /home/site/public_html/theme/xtreme/html.php on line 4

Fatal error: require_once() [function.require]: Failed opening required '.forum/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/theme/xtreme/html.php on line 4

and now i get next error :

Direct initialization of this file is not allowed.

Please make sure IN_MYBB is defined.
p.s (my site link is www.site.com forum link www.site.com/forum)
i included next :

include "/home/site/public_html/forum/global.php";

so why i am not able to include functions or i need to include forum and site in a single folder
Please do not make another thread to bypass the 24 hour no bumping rule. That rule is there for a reason.

http://community.mybb.com/thread-82361.html