Home > Backend Development > PHP Tutorial > 模板不需要编译后文件,怎么处理

模板不需要编译后文件,怎么处理

WBOY
Release: 2016-06-13 13:10:06
Original
1236 people have browsed it

模板不需要编译后文件,怎么办?
一般模板文件需要编译,然后include "编译后的文件"
现在不想使用这种方法。
怎么才能获得



test



用php执行后的结果那?

------解决方案--------------------
用缓冲区获取内容 ob_start() ob_end_flush()
------解决方案--------------------
原始php
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template