たくさんのディレクトリがあり、いくつかのファイルを含めるのに問題があります。これが私の構造です。
index.php
vian / vian.php
include / overall / head_content.php
include / overall / head.php
これが私のhead_content.php
です。
testing text
<?php include 'includes/overall/head.php'; ?>
<div class="wrapper row3">
<div id="container" class="clear">
<div id="content">
そのファイルをに含めたいvian/vian.php
を使用します'../includes/overall/head_content.php';
が、「テキストのテスト」が表示されるため、パスは機能します。ただし、を含めることはできませんincludes/overall/head.php
。なぜ機能しないのか漠然と理解していますが、修正方法がわかりません。
'../includes/overall/head_content.php';
index.php
ルートディレクトリにあるを含むすべてのページで使用されます。