Thanks but I was having a hard time including phpBB's functions file, is there an easy way to include it?
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '/var/www/phpBB3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
//include($phpbb_root_path . 'includes/functions.' . $phpEx);
I commented out functions.php as it complained about redeclaration in that file so I figured common is including it already, I do get an error with that though:
PHP Fatal error: Call to a member function sql_escape() on a non-object in /var/www/phpBB3/includes/functions.php on line 147
I hoped that someone already "exported" the function in a manner that does not require to include the entire project, but if not - I would be very glad on assistance with including phpbb's functions into my small piece of code in order to use internal phpbb3 functions.