php代码: @header('content-Type: text/html; charset=utf-8');
/// 连接数据库服务器
require('lib/mysql.class.php');
$dbcharset = 'utf8';
$query = new dbQuery('localhost', 'root', '123123','guestbook');
require 'lib/Smarty/libs/Smarty.class.php';
// 初始化smarty
$smarty = new Smarty;
$smarty->compile_check = true; // 打开编译检查
$smarty->debugging = false;
$smarty->template_dir = 'templates/'; //模板目录
$smarty->compile_dir = 'templates_c/';//编译文件目录
$smarty->left_delimiter = '';//右标记
?>