If you can get at the servers logs, the error log should tell you what the problem is. In apache its under the logs directory with the name error.log...
One thing you could check is to see if you are printing out the correct headers for a html document. Every once in a while I've forgotten those...