Click to See Complete Forum and Search --> : CGI Forms??
Pc_Madness
Aug 28th, 2002, 03:46 AM
Well I asked this a while back I think... but that was just for a form layout...
But the new question is does anyone have an emailer script that isn't in total jibberish? I tried the one from Matts Script Archieve, but I can't seem to get it working.
I'm hosted at http://www.free.prohosting.com
It supposedly allows CGI hosting.
Thanks in Advance.
JoshT
Aug 28th, 2002, 04:13 PM
Are you running the sendmail server program as well - a lot of scripts rely on that. You can directly you Perl's SMTP module if you have a SMTP server you can connect to.
chrisjk
Aug 28th, 2002, 06:45 PM
I know for a fact that the one at Matt's (formmail) isn't gibberish because I use it and it comes as standard with practically every bit of webspace
You must check with them for things like the sendmail and perl paths so that it works correctly. Also usually perl scripts are confined to the cgi-bin directory. Make sure you've CHMOD'd it 777 (or at least 755) too
Pc_Madness
Aug 29th, 2002, 02:16 AM
Well when I opened up the .cgi.. or .pl file in notepad it was just a continuous letters, with the odd square, and it wasn't exactly readable.
But it looks like they don't allow it anyway. :(
Definately disappointing.
chrisjk
Aug 30th, 2002, 09:25 AM
I have that problem a lot with ascii files, loads of scripts I download turn to long lines with boxes when viewed in Notepad. They of course don't work for toffee when uploaded.
I solve it by copy/pasting it all into Word which correctly formats it, then copy paste it back into notepad and save the file
It should work fine after that
JoshT
Aug 30th, 2002, 11:19 AM
Originally posted by chrisjk
I have that problem a lot with ascii files, loads of scripts I download turn to long lines with boxes when viewed in Notepad. They of course don't work for toffee when uploaded.
I solve it by copy/pasting it all into Word which correctly formats it, then copy paste it back into notepad and save the file
It should work fine after that
WS_FTP can transfer files in ASCII mode instead of binary, so the line breaks stay correct for the respective OS.
chrisjk
Aug 30th, 2002, 11:50 AM
Originally posted by JoshT
WS_FTP can transfer files in ASCII mode instead of binary, so the line breaks stay correct for the respective OS. Normally I just use IE to dowload things like formmail.pl. I think Win2000 is doing it because it doesn't happen on an Win98 box. The file is forever messed up after downloading it, until it's "fixed" using the Word copy/paste method
Strangly enough, viewing the file in some other text editors it displays correctly, but the file is still screwed as it won't parse properly
I had a hell of a time fixing phpmyadmin I can tell you :rolleyes:
JoshT
Aug 30th, 2002, 12:31 PM
It's because Unix uses "\n" as the line break for a text file, while Windows uses "\r\n" for text files. I think Apple might have even used just "\r", but Mac is *nix now anyway.
So even if a text editor handles this automatically, if you upload a text file with Windows line breaks to a Unix based server, the parser doesn't necessarily know what to do with the extra "\r".
chrisjk
Aug 30th, 2002, 02:20 PM
I mean before uploading...take phpmyadmin for example. Downloaded 2.6, unzipped it...this is what it looks like in Notepad straight after download over HTTP using simple hyperlink in IE
http://www.vbforums.com/attachment.php?s=&postid=1151778
Now, that just isn't right. If I leave it like that and upload it to the unix server, it breaks. If i try and parse it through PHP on this machine, it breaks. I have to manually format those line breaks, then it works in both cases.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.