Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI question x 2

proper file transfers? setting file permission?

         

MusicEvolves

11:41 pm on May 15, 2003 (gmt 0)

10+ Year Member



Hi.
I am brand stinkin new to CGI, but I have a formmail (callled BFormMail) that I downloaded from a site that I now would like to use on my server.

Of course, following the readme file (not rocket science) I changed my domain, server, e-mail address etc. Meaning, that which I was told to change, I did.

However... I doesn't work. It's not the server. I'm absolutely confident it's not the HTML and I'm very confident it's not the CGI script. It has to be something else.

So...

I've read a few "common mistakes":
- not setting file permission
- transfering file with ASCII code (apparenly, one should NEVER use binary to transfer text files from a PC to a Unix server).

The above two statements are Greek to me. Unfortunatley, I don't speak Greek.

Can anyone sort this out. I can provide the code(s)... whatever it takes...

I'm at my wits end (didn't take long).

Thanks a tonne.

digitalghost

3:55 am on May 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1. File permissions - For your scripts you need to make sure that you set the proper permissions. Typically, this can be done from your FTP program, highlight the file, right click or use a menu option, select CHMOD and change the value of your permission to whatever value the script calls for.

2. Transferring files - Upload your scripts and web pages in ASCII, images with binary. Most FTP apps allow you to specify how you would like to upload your files. If you're using WS_FTP you can specify how you would like to upload your files by clicking a radio button.