|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Does anyone know of a nice quick bit of code which will trap those annoying error 500's and actually print out something like "Script failed at x line" and if possible run a sub-routine?
I'm sure I saw one in a script once, but I can't find it and the only web page I can find about it goes on about server logs which I don't have access to. Cheers for any advice! Trev |
|
#2
|
|||
|
|||
|
use CGI::Carp qw(fatalsToBrowser);
If you have the CGI.pm installed on your server, otherwise you might have to ask your administrator to install it. Hope this helps. |
|
#3
|
|||
|
|||
|
Cheers, yep that was the one I was after!
Trev |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Easy error 500 trap? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|