Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 7th, 2003, 11:14 PM
Alicia Alicia is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 122 Alicia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 29 m 24 sec
Reputation Power: 15
internal server error

I have a prob in using the perl script... the following is the error that i encountered.


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


#from log file
[Tue Oct 7 22:44:00 2003] [error] [client xxx.xx.xxx.xxx] Premature end of script headers: /usr/local/psa/home/vhosts/myweb.com/cgi-bin/igwhois.pl


May i know whats the error mean ??

p.s: if perl couldn't find an image file, will it display an error or it will continue execute the remaining code ??

please advise.

Reply With Quote
  #2  
Old October 8th, 2003, 06:58 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to dhouston
This most often means that you're not printing your headers correctly. You should have a line preceding any other output to the screen that reads

Code:

print "Content-type: text/html\n\n";

Reply With Quote
  #3  
Old October 8th, 2003, 08:37 PM
Alicia Alicia is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 122 Alicia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 29 m 24 sec
Reputation Power: 15
The statement is already inside the perl script.. so i dun think that is the prob,, do u guys have any idea whats wrong with it ???

please advise.

Reply With Quote
  #4  
Old October 9th, 2003, 07:47 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to dhouston
I've had this problem before when uploading perl scripts from a Windows system onto a Linux system. Windows sticks (sometimes invisible) return characters on the ends of the lines. You can often solve this by running a program called dos2unix on the file in question from the shell prompt. If you don't have access to that, try opening the file in an editor like vi, jumping to the end of the first line in the file, and making sure there are no extra characters or spaces on the end. Failing that, you might consider zipping the file up and uploading the zip instead of the raw perl script.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > internal server error


Developer Shed Advertisers and Affiliates


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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap