This line does not look correct according to where you said your test site was located:
PHP Code:
chdir('/home/netgoon/public_html/domains/mysite.com/forums');
(You said "this script is located at mysite.com/file/vbtest/test.php and the .html is in that folder too.")
Also, what you posted and said you saved as "test_mytesttemplate1.html" is not supposed to be a file. It is supposed to be a template named "test_mytesttemplate1"