I'm wondering how to place a new .php file in the webserver that is work for WP. By reading TheLoopInAction, I want to try it out: The World's Simplest Index Page. Therefore, I copy the code into a .php file, eg, called "thesimpleindex.php" and place it in the root directory of my WP blog, "/htdocs/blog/".
However, it doesn't work:
"Fatal error: Call to undefined function: get_header() in \htdocs\blog\test-thesimpleindex.php on line 2".
I think it is due to the relative location between "header.php" and "thesimpleindex.php" and so I try to place the index into directory "/htdocs/blog/wp-content/themes/default/" but it couldn't help.
Do you know where should I place files, e.g. the index above and some archive script, that call to get header.php and footer.php?