Home >Backend Development >PHP Tutorial >Pages in php call each other

Pages in php call each other

巴扎黑
巴扎黑Original
2016-11-22 15:28:361405browse

require() and require_once()

require_once(): The same file is only called once

Usually placed at the front of the PHP program. Before the PHP program is executed, it will first read in the file specified by require

. It is fatal if an error occurs.

include() and include_once()

include_once()
: The same file is only called once

and can be placed anywhere in the PHP program. When the PHP program is executed, it will first read in the

include specified Imported files will be prompted if an error occurs.

Pages in php call each other

Statement:
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