I'm trying to get my website integrated with VB3.6, but it keeps throwing errors when I try to process the include.
Code:
Warning: main(/var/www/html/includes/init.php): failed to open stream: No such file or directory in /var/www/html/forum/global.php on line 20
Fatal error: main(): Failed opening required '/var/www/html/includes/init.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/forum/global.php on line 20
An my include code:
Code:
$root_path = ($_SERVER["DOCUMENT_ROOT"] . "/forum/global.php");
require_once($root_path);
global.php *is* in /var/www/html/forum though.
Any help would be very much appreciated!