You would require the path to wp-blog-header.php
to access WordPress functionality in a
standalone PHP file. So your justthemenu.php
file should contain the following code.
<?php
require('/wp-blog-header.php');
wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) );
?>