2

ホームフォルダーにファイルa.phpがあり、b.phpとc.phpの2つのファイルがchild_folderにあります。3 つのファイルの内容は次のとおりです。

a.php
<?php
require 'child_folder/b.php';
?>

b.php (within child folder)
<?php
require 'c.php';
require 'child/c.php';
?>

c.php (within child folder)
<?php
echo 'this is c file<br>';
?>

a.php を実行すると、次の出力がエコーされます

これはcファイルです

これはcファイルです

ファイル b を使用してファイル c を呼び出す正しい方法は何ですか? ファイル wrt または wrt b ファイルと呼ぶべき天気..?

4

1 に答える 1