in reply to Re: form mail with post, getting "premature ending of script headers"
in thread form mail with post, getting "premature ending of script headers"
Incidently, those error messages will also appear in your webservers error logs.
Err, yes, I was going to say something about that and forgot: any time you're working on a cgi script, you probably want to have a window tailing the server's error log. If you don't have access to the error logs on the server where this is ultimately going to run, then do your testing on another system first, where you do have access. I run Apache on my home PC and also on my workstation at work, not because they're servers, but so that I can test stuff before putting it on the server. If you're going to be doing cgi programming, it's well worth having Apache on your computer, for testing. Then you can watch the log as you make a change to your script, save it, switch back over to the browser, and hit reload.
sub H{$_=shift;while($_){$c=0;while(s/^2//){$c++;}s/^4//;$ v.=(' ','|','_',"\n",'\\','/')[$c]}$v}sub A{$_=shift;while ($_){$d=hex chop;for(1..4){$pl.=($d%2)?4:2;$d>>=1}}$pl}$H= "16f6da116f6db14b4b0906c4f324";print H(A($H)) # -- jonadab
|
|---|