Error 500: Premature end of script headers
问题 I get a "Premature end of script headers: contactform.cgi" error message when running the below script. What frustrates me is that I ran this as a .php on another server and it worked. However, I had to change servers and they only support CGI PHP. However, it doesn't work. I don't think the code is wrong, but take a look just in case. I've read around and some have said it's a permissions issue. Could this be the case for me? I know that the "display_errors" and "error_reporting" statements