in reply to Server Side Includes with print <<ENDHTML
That's a server configuration issue, something with which I am not familiar. I do have a comment to offer, however. Be very careful when enabling SSI on the output of CGI scripts (or other dynamic content). CGI scripts often output text submitted by remote users. Make sure that any text submitted by a user is filtered of any SSI to prevent undesired "side-effects".