He dispongo de un web site con diferentes secciones (Noticias, Descargas, Enlaces, ...). He decidido aí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?±adirle un foro. Para ello que mejor que utilizar phpBB.
Me gustaria poder extender el manejo que hace phpBB de los usuarios y las sesiones para utilizarlo en el resto de mi web. Buscando un poco por internet encontre el siguiente articulo: Login Integration (Sessions) - Knowledge Base (http://www.phpbb.com/kb/article.php?article_id=143). Siguiendo un poco las explicaciones del articulo ahora dispongo de lo siguiente:
-Estructura de los directorios:
www\index.php
www\phpBB2\index.php
www\phpBB2\common.php
www\phpBB2\...
...
donde www\index.php es la pí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡gina de inicio de mi web site y www\phpBB2\index.php es la pí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡gina de inicio del foro phpBB.
En el archivo www\index.php he puesto el siguiente cí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³digo tal y como indica el artí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Âculo:
Código: Seleccionar todo
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
A que se debe esto???Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\web\index.php:9) in C:\FoxServ\www\web\phpBB2\includes\sessions.php on line 206
Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\web\index.php:9) in C:\FoxServ\www\web\phpBB2\includes\sessions.php on line 207
Muchas gracias!!!!!