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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-02 11:28:541030Durchsuche

phpweb

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn