vineet
11-30-2008, 01:34 PM
hi all
i m having problem with including files and images geting disappear.
i have images folder on the root.
i have header.php in my included_files folder on root.
if i include header.php in my files that are on the root with this code
<?php require_once("included_files/header.php");?>
then all the images of the header.php are shown perfectly alright.
But
if i include header.php in my files that are inside any folder on the root with this code
<?php require_once("../included_files/header.php");?>
then all the images of the header.php are not shown. they disappear.
Like i have folder2 on root. and there is file2 inside folder2. Then i used this code
<?php require_once("../included_files/header.php");?>
to include my header file. but with this code my images of header.php file disappear.
i m not able to understand as we use "../" if the file is inside in any folder on root.
thanks
vineet
i m having problem with including files and images geting disappear.
i have images folder on the root.
i have header.php in my included_files folder on root.
if i include header.php in my files that are on the root with this code
<?php require_once("included_files/header.php");?>
then all the images of the header.php are shown perfectly alright.
But
if i include header.php in my files that are inside any folder on the root with this code
<?php require_once("../included_files/header.php");?>
then all the images of the header.php are not shown. they disappear.
Like i have folder2 on root. and there is file2 inside folder2. Then i used this code
<?php require_once("../included_files/header.php");?>
to include my header file. but with this code my images of header.php file disappear.
i m not able to understand as we use "../" if the file is inside in any folder on root.
thanks
vineet