To the OP: As already said, check your error logs, assuming your hosting company makes them available to you. They should contain the full details of any warnings or error messages emitted by your code.
The 500 Internal Server Error results you're seeing most likely mean that either the server is failing to run your CGI code at all or that it exits (whether "successfully" or not) without outputting anything recognizable as HTTP headers. When you run your script on the command line, what is its output?
In reply to Re^2: Testing scripts
by dsheroh
in thread Testing scripts
by zealf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |