您好,欢迎访问一九零五行业门户网

http://www.google.com.hk/ 用PHP实现的生成静态HTML速度快类库

复制代码 代码如下:
time())//判断上次生成html文件是否以过去1时间,若没有才直接输出文件内容 
        { 
                if ($show_html)//是否以html静态页面展示(0不以html展显1以html展显) 
                { 
                        if ($go_html)//是否直接转到html文件显示还是php读得内容输出(0:php读内容输出1:直接转) 
                        { 
                                header(location:  . html_file);//直接转 
                        } 
                        else 
                        { 
                                echo(file_get_contents(html_file));//读出展显 
                        } 
                        exit(0); 
                } 
        } 

/*___________判断是否已生成了html文件,若生成了则跳转到html页面___________end__________*/ 
?> 
 $value) 

        $atpl[strtoupper($key) ._lang] = $value; 

/*____________________________________列表常识向上走的项__________________end_____________________*/ 
include(woods-templates.php); 
$tpl = new woodstpl(./templates/); 
$tpl->require_tpl(header.html); 
$tpl->set_file(); 
$tpl->block(ebcorp, $scorp); 
$tpl->block(news, $news); 
$tpl->block(product, $product); 
$tpl->block(ebpname_msg, $spname); 
$tpl->block(lore, $lore); 
$tpl->require_tpl(footer.html); 
$tpl->parse($atpl, true); 
$tpl = null; 
/*________________模板操作_________________________end___________________________________*/ 
require(woods-bhtml.php);//生成html处理尾 
?>
以上就介绍了http://www.google.com.hk/ 用php实现的生成静态html速度快类库,包括了http://www.google.com.hk/方面的内容,希望对php教程有兴趣的朋友有所帮助。
其它类似信息

推荐信息