Hello,
I currently have my website in HTML, however I feel PHP would help with site integration between my website and phpBB forum which is built off from PHP.
I started writing my pages however was warned that the "echo" function to display text was not the best idea. So what is the best way? I was following this format:
<?php
//set IN_PHPBB constant and include the initialization script
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);
// include header
include($phpbb_root_path . 'includes/page_header.php');
echo '<div align="center">Test</div>'; // HERE'S MY TEXT
//include footer
include($phpbb_root_path . 'includes/page_footer.php');
?>