Forum Moderators: coopster & phranque

Message Too Old, No Replies

Uploading cgi files. What mode do i use? Help.

Need some help uploading files. Help.

         

frenzy77

1:50 am on Oct 16, 2006 (gmt 0)

10+ Year Member



Hi guys:)

Q.1. Using Ws_ftp, when uploading a xyz.cgi file, what mode do you upload it in?

->In Binary Mode or Text mode?

Q.2. Also if i have a abc.txt file what Mode is that uploaded in?

Thank you guys for All Your help:)

I appreciate it:)

frenzy77

perl_diver

4:44 am on Oct 16, 2006 (gmt 0)

10+ Year Member



text files, which includes most cgi files are uploaded in ASCII or text mode. Just about all other files should be uploaded in binary mode.

tsalmark

4:18 am on Oct 25, 2006 (gmt 0)

10+ Year Member



If you are asking because you had a problem with the script not working.
1. premissions need to be 755, well not really, there are other ones, but 755 is standard. in ws_ftp right click on the file after uplaoding and click on chmod or change permissions or some such.
2. this is rare but utterly confounding, the file on your computer is probably in dos format (end of line character) some upload programs convert text documents to Unix automatically some don't some server setups wont run dos format scripts. in this case you could run dos2unix from the command line but I doubt that is an option for you, another option would be to use "EditPlus" to edit your scripts and click document then fiel format and change everthing to unix.

perl_diver

4:56 pm on Oct 25, 2006 (gmt 0)

10+ Year Member



he said he is using ws_ftp, which will change the line endings properly.