![]() |
Including Global.php
when i include this on a non vb page i get this error message
Warning: main(./includes/init.php): failed to open stream: No such file or directory in /public_html/forum/global.php on line 18 Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/forum/global.php on line 18 anyone know what this means and how i can fix it? |
Well, it means exactly that what the error does say:
./includes/init.php was not found in ., /usr/lib/php or /usr/local/lib/php when it was called in /public_html/forum/global.php in line 18 Solution: chdir('/public_html/forum'); <-- Is this really the full path? |
thnx for the quick reply kirby
the full path is /home/*****/public_html/forum also where do i put chdir('/public_html/forum'); i put it under require global but then i get this error message Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/forum/global.php on line 18 i put the full path in aswell any ideas? |
You must but it above global.php and use the full path
|
like this?
chdir('home/*****/public_html/forum/'); require_once('home/*****/public_html/forum/global.php); |
Not quite ...
Code:
chdir('/path/to/forum'); |
i get this error
Fatal error: main(): Failed opening required 'home/*****/public_html/forum/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/index.php on line 3 |
<a href="https://vborg.vbsupport.ru/showpost.php?p=772988&postcount=6" target="_blank">https://vborg.vbsupport.ru/showp...88&postcount=6</a>
With this Code? |
sorry no i didnt see that post
but when i put chdir('home/*****/public_html/forum'); require_once('./global.php'); i get this message Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/index.php on line 3 |
It's /home/whatever/public_html/forum, not home/whatever/public_html/forum
|
All times are GMT. The time now is 04:43 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:
|