We need a dreamweaver extension, very simple function
select a piece of text in code click a button in the toolbar to make a new fiile with a path
then the select text is replaced by a php include <?php include 'includes/[login to view URL]'; ?>
if there is a directory in the path example
includes/menu/[login to view URL]
then that directory is also created inside the path.