![]() |
I'm trying to add some PHP includes to my sites home non-vB page. I'm not too familiar witht his stuff but I follow directions well :D Anyway, I'm using <? include("vbforums/filename.php"); ?> to read the info but I keep getting the following error:
Fatal error: Failed opening required './admin/config.php' (include_path='.:/usr/local/lib/php') in /home/www/mysite/vbforums/global.php on line 96 I've received this error on several different hacks I've attempted. What can i do to remedy this? |
Try this (no idea if it will work but worth a try):
PHP Code:
|
I found I needed to use the chdir command. Oddly I'm having to use it with each and evry include on the page, not sure if that's the way ti's supposed to be ot not, but, it's all working. Thanks for the reply.
|
Easiest way is to just alter your include_path. There are two way you can do this...
Via .htaccess: Code:
php_value include_path .:/home/www/mysite/vbforums:/home/www/mysite/php-includes PHP Code:
PHP Docs: ini_set(), ini_get() |
All times are GMT. The time now is 10:03 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:
|