include 和 parsenclude 有什么区别

What is the difference between include and parsedinclude

使用有什么区别

   <?php include("filename.inc"); ?>  

    <%parsedinclude(filename.inc)%> 

两者都有效,但我对 < ?< % 约定很好奇,这是一个很难表述的问题对于 Google。

还有 php includeparsedenclude 之间的区别

回答你的第一个问题,<?php 是正常的 PHP 开放标签,而 <% 是它的变体,用于 Nucleus CMS(开源博客管理PHP).

编写的软件包

关于第二个问题,parsedinclude是Nucleus CMS中的函数,在正常PHP中无效。

parsedinclude 的功能:(引自 Nucleus CMS 文档)

Includes a file into the output. The contents of the file is parsed by the Nucleus skin/template parser, so you can use skin/templatevars. (see phpinclude and include for other include options)

函数是 include:(引自 Nucleus CMS 文档)

Includes a textfile into the output. The contents of the file is not parsed in any way, so you cannot use skin/templatevars or use PHP code (see parsedinclude and phpinclude if you want parsed includes)