|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
From client side, there is/was a way to run a cgi script and have the errors recorded. I can't remember how.
Why? I have a script that the logs return "Premature end of script headers". and that is it. Why, line numbers etc., don't show up. I remember that there was a way to run the offending script and the server side would report the offending line number in the script. Otehr are able to get this script to run. Yes, permissions are right, paths are right, perl and cgi.pm are adequate. I've re-installed the script over and over and still can't get the script beyond that one error. I yakked it up with their support BBS and best I get is "check the permissions". I want to find the offending line #. Any way to do this? |
|
#2
|
|||
|
|||
|
CGI::Carp
Try:
Code:
use CGI::Carp qw(fatalsToBrowser); See http://www.perl.com/pub/doc/manual/...b/CGI/Carp.html for more info on how to use the Carp module. You might also want to have a search for a web-based Perl syntax checker. There almost certainly is one out there. I did a search but just found HTML checkers written in Perl. I know some ISPs and hosting companies provide a Perl checker as a service to their customers because they don't give them shell accounts that they can use to check the syntax on the command line. I'm assuming this is the problem in your case. If not, telnet to the server, log in and run your script using the -c switch. This checks the program syntax but doesn't run it. Code:
perl -c myscript.cgi Later... I found a web CGI checker: http://www.htmlhelp.com/tools/cg-eye/ [Edited by Adrian2 on 02-12-2001 at 01:16 PM] |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Discovering Error Kodes - |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|