I have a bunch of directories, and I have trouble including some files. Here's my structure.
index.php
vian/vian.php
includes/overall/head_content.php
includes/overall/head.php
Here is my head_content.php
.
testing text
<?php include 'includes/overall/head.php'; ?>
<div class="wrapper row3">
<div id="container" class="clear">
<div id="content">
I want to include that file in vian/vian.php
I use '../includes/overall/head_content.php';
, and the path works since 'testing text' shows up. But it cannot include includes/overall/head.php
. I vaguely understand why it doesn't work, but I can't figure out how to fix it.
'../includes/overall/head_content.php';
is used on all my pages, including index.php
, which is in my root directory.