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

Re: [cobalt-users] C libraries for CGI



on 1/27/00 6:37 AM, WebMost at dbugger@xxxxxxxxxxx wrote:

> #include <c_newbie.h>
> 
> Ahoy
> 
> Any of you hack C programs for CGI?
> 
> I am wondering whether there are handy some C libraries or header files
> either installed on the RaQ2 or available as .pkg files or rpms which would
> help handle CGI form input?

I would highly suggest not using C for programming CGI.  I have done it all
in this respect, and it wouldn't be worth the time or the effort to do so.
It would actually probably take you less time to learn PHP than it would be
to get up and going with some C libraries for CGI support.  You could even
go with PERL, which is also (relatively) easy to learn, but a little harder
than PHP for basic CGI stuff.

It also sucks to have to compile ever time you want to test a change.

There are a ton of C libraries out there that support CGI information, but
none of them are going to be available in a .pkg format.  Really, it isn't
necessary.  All you have to do is snag the library and documentation from
someone, slap an include statement in there and you're off and running.
There isn't really an 'installation'.

If you are just starting out learning C, I'd bail on it.  Its a great
language, but just isn't as applicable now as it used to be.  Espcecially
for doing web-based stuff.  I would really suggest going with PHP which has
a learning curve about 1/20th of C, or PERL which is like 1/4 of the C
learning curve.

-k