Грешка с Урок

jefriii

Registered
След като направих урока за интегрирането на пхпбб2 със сайт във сайта ми се показва отгоре над хеъдара този надпис
Код:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/hp.z-bg.com/htdocs/index.php:1) in /var/www/virtual/hp.z-bg.com/htdocs/forum/includes/sessions.php on line 366

Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/hp.z-bg.com/htdocs/index.php:1) in /var/www/virtual/hp.z-bg.com/htdocs/forum/includes/sessions.php on line 367

ето го сайта http://hp.z-bg.com/
 
покажи ми отгоре какво си сложил , точно... малко от файла копирай :roll:
 
Код:
  <?
define('IN_PHPBB', true);
$phpbb_root_path ='forum/';
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>
тва е отгоре
 
jefriii каза:
Код:
  <?
define('IN_PHPBB', true);

include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>
тва е отгоре
преди него не трябв да има никъв друг код ... и напишио пътя до форума , защото най - често се случва да ти показва грешки при пътя на форума ... не ги въвеждате какво трябва

$phpbb_root_path ='forum/'; за това говоря :lol:
 
GD_BLUE каза:
jefriii каза:
Код:
  <?
define('IN_PHPBB', true);

include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>
тва е отгоре
преди него не трябв да има никъв друг код ... и напишио пътя до форума , защото най - често се случва да ти показва грешки при пътя на форума ... не ги въвеждате какво трябва

$phpbb_root_path ='forum/'; за това говоря :lol:
хяма друг код преди него спокойно а колкото до пътя на форума да го направя така ли http://hp.z-bg.com/forum/ ?
 
GD_BLUE каза:
$phpbb_root_path ='../forum/';

я го сложи така .

Warning: include() [function.include]: open_basedir restriction in effect. File(./../forum/config.php) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 4

Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/share/php/../forum/config.php) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 4

Warning: include() [function.include]: open_basedir restriction in effect. File(/var/www/virtual/hp.z-bg.com/htdocs/../forum/config.php) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 4

Warning: include() [function.include]: open_basedir restriction in effect. File(../forum/config.php) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 4

Warning: include(../forum/config.php) [function.include]: failed to open stream: Operation not permitted in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 4

Warning: include() [function.include]: Failed opening '../forum/config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 4

Warning: include() [function.include]: open_basedir restriction in effect. File(./../forum/extension.inc) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 5

Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/share/php/../forum/extension.inc) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 5

Warning: include() [function.include]: open_basedir restriction in effect. File(/var/www/virtual/hp.z-bg.com/htdocs/../forum/extension.inc) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 5

Warning: include() [function.include]: open_basedir restriction in effect. File(../forum/extension.inc) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 5

Warning: include(../forum/extension.inc) [function.include]: failed to open stream: Operation not permitted in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 5

Warning: include() [function.include]: Failed opening '../forum/extension.inc' for inclusion (include_path='.:/usr/share/php') in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 5

Warning: include() [function.include]: open_basedir restriction in effect. File(./../forum/common.) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 6

Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/share/php/../forum/common.) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 6

Warning: include() [function.include]: open_basedir restriction in effect. File(/var/www/virtual/hp.z-bg.com/htdocs/../forum/common.) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 6

Warning: include() [function.include]: open_basedir restriction in effect. File(../forum/common.) is not within the allowed path(s): (/var/www/virtual/hp.z-bg.com/htdocs:/tmp:/usr/share/php/:/var/lib/php5) in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 6

Warning: include(../forum/common.) [function.include]: failed to open stream: Operation not permitted in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 6

Warning: include() [function.include]: Failed opening '../forum/common.' for inclusion (include_path='.:/usr/share/php') in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 6

Fatal error: Call to undefined function session_pagestart() in /var/www/virtual/hp.z-bg.com/htdocs/index.php on line 7
 
поне при мен е така :

<?
define('IN_PHPBB', true);
$phpbb_root_path ='../forum/';
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>

като се има в предвид че пътя до форума е

saita.com/forum :?:

и нямам проблем :arrow:
 
Код:
<?
ob_start();
define('IN_PHPBB', true);
$phpbb_root_path ='forum/';
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
?>
 

Back
Горе