hi all
i m having problem with including files and images geting disappear.
i have images folder on the root.
i have hdr.php in my included_files folder on root.
if i include hder.php in my files that are on the root with this code
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
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
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.
when i view the html source in explorer then i get the same path on both pages whether the page is inside any folder or on root.
thanks
vineet
i m having problem with including files and images geting disappear.
i have images folder on the root.
i have hdr.php in my included_files folder on root.
if i include hder.php in my files that are on the root with this code
Code:
<?php require_once("included_files/hdr.php");?>
But
if i include header.php in my files that are inside any folder on the root with this code
Code:
<?php require_once("../included_files/hdr.php");?>
Like i have folder2 on root. and there is file2 inside folder2. Then i used this code
Code:
<?php require_once("../included_files/hdr.php");?>
i m not able to understand as we use "../" if the file is inside in any folder on root.
when i view the html source in explorer then i get the same path on both pages whether the page is inside any folder or on root.
Code:
<img src="images/home_icon.gif" alt="" width="13" height="12" style="padding-bottom:5px" />
vineet
Comment