The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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- |
#2
|
||||
|
||||
You use the chdir() function (Change Directory):
Code:
chdir("/full/path/to/your/forum"); require("./global.php"); |
#3
|
|||
|
|||
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- |
#4
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|