\n這個方法可以讓主機只讀php和mysql
其他的檔案"全部外包"
約可以簡少60~80%流量轉嫁至別的空間.
並大幅減少主機httpd server的工作量
結果遇到一個困難點:
functions.php
找到\r
代碼: 選擇全部
$template_path = 'templates/';
$template_name = $row['template_name'] ;
$template = new Template($phpbb_root_path . $template_path . $template_name);找到\r
代碼: 選擇全部
@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');本來拿到kimo和pchome測,如果網址錯則出現錯誤,網址對則出現空白,本來以為是pchome和kimo不支援tpl副檔.以為成功了,高興的想和大家分享.
後來
拿到isp及自己的主機測,卻出現
代碼: 選擇全部
Template->make_filename(): Error - file does not existindex.php
代碼: 選擇全部
$template->set_filenames(array(
'body' => 'index_body.tpl')
);大家有辦法嗎?我研究一整晚還是槓龜阿..
如果能把整個風格都搬家,那真是phpbb玩家的福音~~
