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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Error

Status
Not open for further replies.

ogri

Programmer
Joined
Sep 26, 2000
Messages
74
Location
GB
Hi

I am trying to write a Perl script and I am getting the "Premature end of script headers: " error. Normally this is due to an error in the code, but I cannot get rid of it. I have another script that works, and have copied this and uploaded it with another name. The copy fails with the above message but the original works fine.

What have I forgotten to do when uploading?

All the best

Keith
 
Change from binary transfer mode to ascii transfer mode.

--jim
 
Hi

Thanks. That was the problem. I was using Terrapin ftp software, which uses the registered file extensions for a selection list of which to transfer as binary and which as asci. "cgi" was not registered and had not appeared on the list.

Seems to work now

All the best

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top