ok, I got it with this:
<?php
define(‘WP_USE_THEMES’, false);
require($_SERVER[‘DOCUMENT_ROOT’].”/wp-blog-header.php”);
?>
<?php get_header(); ?>
ok, I placed the my-dir at the same level as wp-content and placed this code at the top of the page:
<?php
require(‘http://www.domain.com/wp-blog-header.php’);
?>
Then this function call is in the page: <?php get_header(); ?>
throws this error:
Fatal error: Unknown function: get_header() in /home/***/public_html/***/my-dir/index2.php on line 4
I don’t mind putting it in the root, but I want to be able to use all the wp functions like: <?php get_header(); ?> ect.
so if you know a way of putting it in the root and still being able to call the standard theme includes and what not, great.