I'm sure I'm doing something wrong....
I'm getting the following errors from the include for db.
Code: Select all
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/addpost.php</b> on line <b>134</b>: <b>include(./includes/db/phpbb/db/driver/mysqli.php): failed to open stream: No such file or directory</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/addpost.php</b> on line <b>134</b>: <b>include(): Failed opening './includes/db/phpbb/db/driver/mysqli.php' for inclusion (include_path='C:/xampp/php/PEAR')</b><br />
Ignore the line numbers. Here is a snippet of code
Code: Select all
<?php
define('IN_PHPBB', true);
$dbms = 'mysql';
global $sql_db;
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include_once($phpbb_root_path . 'common.' . $phpEx);
include_once($phpbb_root_path . 'config.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include_once($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
// other stuff here but is not important.
?>
What am I doing wrong?
Thanks
John Morrison