Yeah, I referenced it as Header.php here, but in all my code its HEADER.php, Its currently not in the phpbb directory as its not a forum page, basically it displays a persons profile on every page... but the reason why I removed the error messages with @ is becuase otherwise I get this random error message that doesnt do any harm (so the people at the phpbb forum told me to just block it)... but I unblocked it, and yaay progress, I got this error message where before it was a blank page...
Warning: main(./forums/extension.inc): failed to open stream: No such file or directory in /home/content/n/e/g/negativezero/html/HEADER.php on line 9
Warning: main(): Failed opening './forums/extension.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/n/e/g/negativezero/html/HEADER.php on line 9
Warning: main(./forums/common.): failed to open stream: No such file or directory in /home/content/n/e/g/negativezero/html/HEADER.php on line 10
Warning: main(): Failed opening './forums/common.' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/n/e/g/negativezero/html/HEADER.php on line 10
Fatal error: Call to undefined function: session_pagestart() in /home/content/n/e/g/negativezero/html/HEADER.php on line 14
Can this be fixed? Or should I attempt an absolute adress? (BTW I already tried an absolute adress, but it doesnt work, dont you have to declare something in the php to get it to work?)
Perhaps could it be that when I define these variables in HEADER.php...
//$phpbb_root_path = './forums/';
@define('IN_PHPBB', true);
@$phpbb_root_path = './forums/';
global $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);
global $userdata;
@init_userprefs($userdata);
//
// End session management
//
@$NEWPMS=$userdata['user_new_privmsg'];
@$RANK=$userdata['user_rank'];
@$USER_POSTS=$userdata['user_posts'];
@$USER_AV=$userdata['user_avatar'];
@$USER_NAME=$userdata['username'];
@$sesid=$userdata['session_id'];
?>
It is getting a directory error there? Like when I include a file does it load things from the included files directory or the file that called it?