Code: Select all
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../forum/'; // Change in your own root path
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
Code: Select all
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../forum/'; // Change in your own root path
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
// Print all the user data
echo'<pre>';
print_r($user);
echo'<pre>';
// Print the user name
print ($user->data['username']);
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /media/160go/hebergement/bs.goldzoneweb.info/index.php:19)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /media/160go/hebergement/bs.goldzoneweb.info/index.php:19)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /media/160go/hebergement/bs.goldzoneweb.info/index.php:19)
You send some data to the browser before you start the phpbb session (empty lines are also data!). This happens in index.php on line 19.Erik Frèrejean wrote:You can't send any data to the browser before this code!
To know what was being asked for?bardosoft wrote:Hi
How can do the integration of user sessions of phpBB to my site?
thank's
Well it isn't such a strange sentance (for a non English person )allanhardy wrote:Erik
How on earth did you decipher this:To know what was being asked for?bardosoft wrote:Hi
How can do the integration of user sessions of phpBB to my site?
thank's