SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old February 11th, 2001, 10:19 PM
Shiva Shiva is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Kelowna
Posts: 0 Shiva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?


Reply With Quote
  #2  
Old February 12th, 2001, 08:51 AM
Adrian2 Adrian2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London, England
Posts: 251 Adrian2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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]

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Discovering Error Kodes -


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway