Home  >  Article  >  Backend Development  >  web-为什么将网页变成字符串再echo出来,其php代码就失效了

web-为什么将网页变成字符串再echo出来,其php代码就失效了

WBOY
WBOYOriginal
2016-06-02 11:28:54923browse

phpweb

普通的后缀为.php的文档其中能运行php语句
而我用file__get__contents()函数将其转化为字符串,再用echo输出来
里面的php语句就无法被解析了
如:
$web__file = file__get__contents("demo__web.php");
echo $web__file_

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