problems with include()
| From: | Daniel Negron/KBE | Date: | Thu, 30 Jan 2003 21:02:04 +0000 |
| Subject: | problems with include() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133695@lists.php.net to get a copy of this message | ||
I have this code :
<?php
if(!isset($mainfile))
{
include("mainfile.php");
}
include("open_session.php");
include('config.php');
include ('header.php');
Coverted html in here.
include ('footer.php');
?>
which works great from the root dir where these files are stored. [all
content is showing properly]
If I move the file to its final destination, let say ...
http://root_dir/intranet/training/final_folder
I change the code to match
<?php
if(!isset($mainfile))
{
include("../../mainfile.php");
}
include("../../open_session.php");
include('../../config.php');
include ('../../header.php');
Coverted html in here.
include ('../../footer.php');
?>
ALL I get is the Converted HTML printed on the screen. I have tried many
variations of traversing the directories, but this does not seem to be
working. Can anyone help ?
Thank you,
**DAN**