ディレクトリ名を入力するとphpが機能しません

I’m Japanese, so I can’t speak English fluently.
By the way, please look in This site.
index.php and about.php work, but bgm/list.php doesn’t work no matter how many times I try. What makes me fail?

php is looking for files in the bgm directory when using require(), because that’s where list.php is located. To fix this, add a ../ in front of your php require statements to tell php that the file you are looking for is in the parent directory, not the current directory.
Like this: <?php require('../parts/nav.html') ?>
Be sure to do this for all of your require statements in the whole php file.

Working version: https://glitch.com/edit/#!/goldenrod-mellow-melody

2 Likes

It went well! Thank you very much!

1 Like

No problem!