Include()给我错误


include() is giving me error

我的页面id代码如下

页面名称: test.php

content:

ob_start();
include("test.php");
$GeneratedHTML = ob_get_contents();
ob_end_clean();
echo $GeneratedHTML;

给了我这样的错误

致命错误:在D:'xampp'htdocs'test.php第2行

谁能告诉我为什么它给我错误,当我包括相同的文件

你有一个无限循环。

test.php包含test.php其中包含test.php

重命名要包含的文件,或者代码所在的文件的名称。