I don't understand how it is strange.
On your index2.php page the script works properly as the page is being parsed for PHP (since it has name .php).
On your testpage.htm the script does NOT work properly as the page is NOT being parsed for PHP (it has extension .htm).
On your testpage.htm You have the code:
PHP Code:
?php
include_once("/home/krang1/domains/shreddersdojo.com/public_html/Forum/news.php");
$forum_obj = new EP_Dev_Forum_News();
AddHandler application/x-httpd-php .php .html .htm
$forum_obj->display_Headlines("5", "26", "0", "0"); ?>
I can see where you are trying to tell your webserver to parse htm, html for PHP... but you need to place that line in a ".htaccess" file and place it in your site's public_html folder. A .htaccess file is simply an ordinary text file named .htaccess
In your .htaccess file, you should have:
Code:
AddHandler application/x-httpd-php .php .html .htm
Alternatively, I would suggest that you simply rename your pages to .php