Server Side Include PHP Dreamweaver CS 6 Can't get the paths right
Ok I am trying to place my menu in using a SSI. This use to work I managed to break it cleaning up temnplates
I can no longer find a way for DW to update my Include path in PHP files
I came across this discussion in my quest
"Server-side includes" equivalent in DW CC
and in that I found what i hoped would be the golden apple with this
<?php require_once('includes/my-include-file.php'); ?>
I tweaked this to
<?php require_once('Includes/Navigate2.php'); ?> to reflect my site (yes my older directories start with Caps)
Fatal error: require_once(): Failed opening required 'Includes/Navigate2.php' (include_path='.:/usr/local/share/pear') in /usr/local/www/kasdivi.com/pages/Travel/HongKong/Aberdeen/Jumbo.php on line 111
Ok tweak again and tried the absolute path
<?php require_once('http://kasdivi.com/Includes/Navigate2.php'); ?>
and
Fatal error: require_once(): Failed opening required 'http://kasdivi.com/Includes/Navigate2.php'
and tried this to get auto path that works on the css files (soort about the yellow I am too old to figure out how to turn it off)
<?php require_once('../Includes/Navigate2.php'); ?>
and yes same error
Fatal error: require_once(): Failed opening required '../Includes/Navigate2.php' (
So I hand edited the relative path to
<?php require_once('../../../../Includes/Navigate2.php'); ?>
and everything work great
So I guess this means I broke templates in DW 6?
