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**


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to