Home  >  Article  >  Backend Development  >  include一个php文件,经常会失败,请教需要注意些什么

include一个php文件,经常会失败,请教需要注意些什么

WBOY
WBOYOriginal
2016-06-13 12:44:55704browse

include一个php文件,经常会失败,请问需要注意些什么?
网上说是跟php的起始终结符有关 ?>。
那就说说几种情况吧,
被include的php中,
1. ?>前有html
2. ?>前只有script
3. ?>后有html

主文件中,
1.include前后都是php
2.include前面是php
3.include后面是php
4.include前后都是html
5.include前面是html
6.include后面是html

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