Hi,
I'm having a problem with the below php include conflict.
If I try to use Code #1, Code #2 will no longer work and then returns the below error.
Code #1 is used to integrate a phpBB3 login script into my website. Code #2 is used for navigation on my website. So I need both, but when trying to use both codes, there are problems.
Could anyone please offer some ideas on to how to allows these codes to work together?
Thanks
Code #1 (index.php starting at line one)
Code #2 (index.php on line 1433)
Error: (using index.php?id=contact.php)
I'm having a problem with the below php include conflict.
If I try to use Code #1, Code #2 will no longer work and then returns the below error.
Code #1 is used to integrate a phpBB3 login script into my website. Code #2 is used for navigation on my website. So I need both, but when trying to use both codes, there are problems.
Could anyone please offer some ideas on to how to allows these codes to work together?
Thanks
Code #1 (index.php starting at line one)
Code:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../forums/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//
// End session management
//
?>
Code #2 (index.php on line 1433)
Code:
<?php include ("$id"); ?>
Error: (using index.php?id=contact.php)
Code:
[phpBB Debug] PHP Notice: in file /index.php on line 1433: main() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php')