Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error logs

Status
Not open for further replies.

Haunter

Programmer
Jan 2, 2001
379
US
I have a script that runs fine in my IDE and on one server it is installed but I continue to get a server 500 error and the second server it is installed but I dont have access to the server logs to get any useful information there is a there a bit of code I can use to output errors to my browser to assist me?
 
OH the server is a *nix server and I am not entirely sure what server software is running but hope it is Apache...
 
Add the following after the shebang line:

use CGI::Carp qw(fatalsToBrowser);

This will report any software errors straight to the browser. Make sure you remove the line for release code, as any error will be reported to the user.

HTH,
Barbie.
Leader of Birmingham Perl Mongers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top