![]() |
I always get errors like this when i include files from a different directory
Fatal error: Failed opening required './admin/config.php' (include_path='') in /home/win32asm/public_html/board/global.php on line 96 and it's because PHP doesn't take into account the directory according to the file i include but to the file from which i called the first include :( How do I solution this? Thank you very much -H- |
You use the chdir() function (Change Directory):
Code:
chdir("/full/path/to/your/forum"); |
ok, thx a lot :)
I'll try that. I'm an experienced ASP and ColdFusion user but PHP is new to me. Thx again :) -H- |
I prefer to change the scope of included files rather than changing directories...
PHP Code:
PHP Docs: include_path, ini_get, ini_set() You can also do this in .htaccess: Code:
php_value include_path .:/path/to/includes |
All times are GMT. The time now is 01:40 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:
|