hello,
I'm trying to get phpBulletinBoard3 nicely integrated with my existing website. Basically I want to be able to provide access by using the 'include' statement to include the phpBB3 index.php file from within my site's main php file, but it gives me an error when I try and run.
My phpBB dir is a subdirectory of the www dir, and the file I am trying to include contains other include statements, so maybe its got something to do with the include_path?
I use this statement to include a target file
<?php include("phpBB3/index.php"); ?>
but I get this error when I refresh the browser
Warning: include(./common.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\phpBB3\index.php on line 21
Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\phpBB3\index.php on line 21
Warning: include(./includes/functions_display.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\phpBB3\index.php on line 22
Warning: include() [function.include]: Failed opening './includes/functions_display.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\phpBB3\index.php on line 22
Fatal error: Call to a member function session_begin() on a non-object in C:\wamp\www\phpBB3\index.php on line 25
This is line 21, 22 and 25 of the phpBB file I want to include
include($phpbb_root_path . 'common.' . $phpEx); //line 21
include($phpbb_root_path . 'includes/functions_display.' . $phpEx); //line 22
$user->session_begin(); //line 25