Hi, I've done some work in perl before, and i opened my hosting account with TCH so i could further play around with it. I had a script that i had downloaded and been trying to understand and modify. <br /><br />I uploaded the script and tried to execute it, and i kept getting errors. Through troubleshooting, i went back to a script i knew should work... and it still doesnt. I seem to be missing something, and cannot get anything to work. The debug script i was trying to test with is a simple hello world script.<br /><br />#!/usr/bin/perl<br />print "Content-type: text/html\n\n";<br />print "<H1>Hello World</H1>\n";<br /><br />and it gives me the error:<br /><br />[Mon Dec 20 14:08:01 2004] [error] [client 68.123.5.66] Premature end of script headers: /home/nickhea/public_html/cgi-bin/hw.pl<br /><br /><br />I've made sure to upload it in ASCII, and converted the file to UNIX line breaks, and made sure it was CHMODed to 755 (as was suggested on various websites about this error--Still nothing).<br /><br />Any tips on what the issue might be?<br />Thanks, <br />Nick<!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family Nick <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />and your new home!<br />Hang in there, <br />I am sure ther are still some family members here that use perl yet.<br />Most have moved on to php, but should be able to help.<br />Give it some time for them to check in.<br /><br />We really are like family here.<br />So if you need anything,<br />just ask your new family!<br />We love to help <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Thanks <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /> <br /><br />By the way, i'm very impressed with TCH and its hard working support staff. From what i've read on the forums, and the VERY prompt replies to my few inquiries thus far, I have never seen any company with better support--I'm not sure its possible. <br /><br />Im sold on TCH for as long as I have hosting, and any reccomendations will be going straight to you--no question.<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tchrocks!.gif" style="vertical-align:middle" emoid=":tchrocks!:" border="0" alt="tchrocks!.gif" /><!--content-->
Welcome to your extended family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Nick,<br /><br />Welcome to the forums and welcome home.<!--content-->
Hi Nick<br /><br />I work extensively with Perl and have had similar problems. Generally I upload to TCH using SmartFTP with ASCII transfer set as default. However I have found that if I upload using the TCH control panel file upload I invariably get this error which means that it hasn't uploaded in ASCII.<br /><br />To get round this use the File Manager from your control panel - edit the script then immediately save it again and see if that works. I don't believe uploading scripts to TCH servers using the control panel really works properly. Download a copy of SmartFTP and upload using that.<!--content-->
I actually use CuteFTP pro... I sent that it using that.<br /><br />Well. I seemed to have fixed it, playing around with the perl code.<br />I didnt really change anything, it just kind of started working suddenly. *shrug*<!--content-->
Welcome to the family, Nick <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br /><br />I use CuteFTP to upload my perl scripts. Are you sure you uploaded in ASCII? You can add the .pl extension to the text file extensions? Sometimes I have problems with forcing ASCII mode unless I add them to the text extension list.<!--content-->
Welcome to the family, Nick.<br /><br />I have nothing to add about this issue apart from what has already been said, so I'll just say that if you need anything, you know where to post <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br /><br />Welcome aboard <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
<img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family Nick <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br />and your new home!<br />Hang in there, <br />I am sure ther are still some family members here that use perl yet.<br />Most have moved on to php, but should be able to help.<br />Give it some time for them to check in.<br /><br />We really are like family here.<br />So if you need anything,<br />just ask your new family!<br />We love to help <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Thanks <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /> <br /><br />By the way, i'm very impressed with TCH and its hard working support staff. From what i've read on the forums, and the VERY prompt replies to my few inquiries thus far, I have never seen any company with better support--I'm not sure its possible. <br /><br />Im sold on TCH for as long as I have hosting, and any reccomendations will be going straight to you--no question.<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tchrocks!.gif" style="vertical-align:middle" emoid=":tchrocks!:" border="0" alt="tchrocks!.gif" /><!--content-->
Welcome to your extended family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Nick,<br /><br />Welcome to the forums and welcome home.<!--content-->
Hi Nick<br /><br />I work extensively with Perl and have had similar problems. Generally I upload to TCH using SmartFTP with ASCII transfer set as default. However I have found that if I upload using the TCH control panel file upload I invariably get this error which means that it hasn't uploaded in ASCII.<br /><br />To get round this use the File Manager from your control panel - edit the script then immediately save it again and see if that works. I don't believe uploading scripts to TCH servers using the control panel really works properly. Download a copy of SmartFTP and upload using that.<!--content-->
I actually use CuteFTP pro... I sent that it using that.<br /><br />Well. I seemed to have fixed it, playing around with the perl code.<br />I didnt really change anything, it just kind of started working suddenly. *shrug*<!--content-->
Welcome to the family, Nick <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br /><br />I use CuteFTP to upload my perl scripts. Are you sure you uploaded in ASCII? You can add the .pl extension to the text file extensions? Sometimes I have problems with forcing ASCII mode unless I add them to the text extension list.<!--content-->
Welcome to the family, Nick.<br /><br />I have nothing to add about this issue apart from what has already been said, so I'll just say that if you need anything, you know where to post <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br /><br />Welcome aboard <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->