PHP里的页脸相互调用

WBOY
Release: 2016-06-13 12:44:29
Original
810 people have browsed it

PHP里的页面相互调用

require() ?与 ?require_once()

? ? ?require_once():同一文件只调用一次

? ? ? 通常放在 PHP 程序的最前面,PHP 程序在执行前,就会先读入 require?

所指定引入的文件,如果出现错误是致命的。

include() ?与 ?include_once()

? ? ?include_once()
?:同一文件只调用一次

? ? ? 可以放在 PHP 程序的任何一个位置,PHP 程序在执行到时,才会先读入?

include 所指定引入的文件,如果出现错误将会提示。

?



?

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