Re: INTERNAL SERVER ERROR (WIERD???)



wizard wrote:

> Hello Friends,
> Kindly help.
> I am working on an script which is working with our email program of
> our company.
> Recently some changes were made to the script and it started giving he
> nasty " 500 INTERNAL SERVER ERROR".
> The Apache error logs give:-
> Premature end of script headers.
>
> Now, the script does execute and the email is sent but the webpage
> gives the error. Also, this error comes up only sometimes but not
> everytime we run the script in identical conditions, say one in three
> times. Sometimes when I go back to the previous page and again press
> the submit button , it goes properly. All the file permissions are
> proper, the /usr/bin/perl -w is right, Content type is correct, pert
> -cwT , all are checked , I mean , all the usual answers to the problem
> are checked and they are fine. If it were a syntax error, or some
> header problem , it would never have run , but it is running well for
> the past 7 years. The changes that I made to it were nominal and they
> do not affect the output.
>
> Also, I dont know how to step run the script from a web browser. Also,
> I dont know where to look for the bug since it does run properly
> SOMETIMES.
>
> Please help.
>
> Regards,
> Vivek. J. Joshi.



use CGI::Carp qw(fatalsToBrowser);


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
.