[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CGI Script wwwcount2.5



Hi Carrie,

> Oh I am *so* confused now. CGI is supposed to be uploaded in ASCII...

Ehm, no.

You seem to have misunderstood the term "CGI". CGI is just a protocol that
determines how a program and a webserver may "talk to eachother". It says
nothing about the filetype.

A CGI program can be written in any language. Including Perl script (which
are textfiles in nature) or compiled programs (binary) like wwwcount in this
case.

> If you upload a CGI script in binary it will wrap lines, put nasty
new-line
> blocks on the end of everything, and generally break the script...

No, it will not. Binary only means something like "transfer exactly like the
file is". The nasty newlines and screw up's are caused by editors on
platforms like Windows.

--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/