Ok. I started getting Session ID errors. Something about headers already being sent.
Then I deleted the file, copy and pasted the code again, and uploaded it again on friday morning and it worked fine.
Then today when I came back to it, I got the Session errors again.
Now I've deleted the file, copy and pasted the code and saved it again, and uploaded it again. Now I don't get any errors.
Could anybody tell me the problem with this?
The code I've got so far is:
Code: Select all
<?
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
//
//
// Start output of page
//
define('SHOW_ONLINE', true);
$page_title = $langї'Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'index_body.tpl')
);
?>
The URL for this file is
http://www.sarginsons.net/forum/php.php
Also, if I place the file outside the /Forum/ directory I get an error, even if I change the
$phpbb_root_path = './'; and the
'includes/page_header.'.
Could anybody help me with this.
Icé
