php - include parent directory not working -


so have site uses subfolders each subpage, can't every directory work.

the fotter.php called in correctly, not head.php. wrong?

php-file: <?php include_once("analyticstracking.php") ?> <?php include('../head.php'); ?> <?php include('header.php'); ?> <?php include('counters.php'); ?> <?php include('quiz.php'); ?> <?php include('../goal.php'); ?> <?php include('../footer.php'); ?> 

you should include proper path. try:

<?php include('/home/username/public_html/directory/head.php); ?> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -