I have files that need included for another file, and the file is in fact in the place where it is being called for namely in the modules/Forums/entension.inc the file I want to include is the extension.inc ,there is also within the same location a common.php file the extension.inc if in case the server is using the php3 extension, here is the error that comes up when trying to run this file.
Warning: main(modules/Forums/extension.inc) [function.main]: failed to open stream: No such file or directory in c:\WAMP\www\78\modules\Forums\avatar.php on line 5
the directory structure is ROOT/modules/Forums. I set the root for the file that accesses it like below
define('IN_PHPBB', true);
$phpbb_root_path = 'modules/Forums/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
I am trying to make a script written for the phpBB forums software work with a PHP-Nuke CMS which has the includes in the root of the CMS and the root of the phpBB is in modules/Forums but must also access the includes which has the page header and tail information, so I access it by
include("includes/page_header.php"); if it would ever get past the first two files. What is causing this to happen when the file is in fact where I am telling the script that it is?