lovkraft
asked on
displaying html code
I am setting up a script, and I am having probs!
when I type
perl script.pl (or ./register.pl)
----------------\
Content-type: text/html
<HTML><HEAD><TITLE>Form Incomplete</TITLE></HEAD>
<BODY>
....
</BODY></HTML>
-----------------/
but when I run it from my browser, I get:
-----------------\
500 Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster@cheathouse.com and
inform them of the time the error occurred , and anything you might have
done that may
have caused the error.
Error: HTTPd: malformed header from script
/usr/local/etc/httpd/cgi-b in/library /register/ register.p l
------------------/
What could be wrong? Any help is greatly appreciated.
Jens Schriver
when I type
perl script.pl (or ./register.pl)
----------------\
Content-type: text/html
<HTML><HEAD><TITLE>Form Incomplete</TITLE></HEAD>
<BODY>
....
</BODY></HTML>
-----------------/
but when I run it from my browser, I get:
-----------------\
500 Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster@cheathouse.com and
inform them of the time the error occurred , and anything you might have
done that may
have caused the error.
Error: HTTPd: malformed header from script
/usr/local/etc/httpd/cgi-b
------------------/
What could be wrong? Any help is greatly appreciated.
Jens Schriver
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
lovkraft, whatever happened with this? Did you get it working? If not we'll be happy to try to help further. If so - please grade this question (or reject my answer if was something else). Thanks and good luck!
perldoc perlfaq9
or
http://www.perl.com/perl/faq/idiots-guide.html
or
http://www.perl.com/perl/faq/perl-cgi-faq.html