2010-11-26, 02:44 PM
when i try to include require_once "/forum/global.php";
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
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