次々とせずに別のphpページを呼び出そうとしています。
私はページを持っていaますb:
a.php内容:<html a page tags> <?php echo "i'm a.php"; ?> </html a page tags>b.php内容:<html b page tags> <?php echo "i'm b.php"; include '../a.php'; ?> </html b tags>
を実行するb.phpと、次のように表示されます。
<html b page tags>
i'm b.php
<html a page tags>
i'm a.php
</html a page tags>
</html b tags>
aとの両方から html タグをb次々に見ることができます。
代わりに、b.phpを実行すると、の html タグ内のテキストのみが表示されます。aつまり、出力は次のようになります。
<html b page tags>
i'm b.php
i'm a.php
</html b tags>