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

Re: could we use c replace perl in cgi program?



On Sat, 14 Dec 2002, eric lin wrote:

> may be after I install what you recommand's libcgicg1-dev package
> it have test-cgi in my /usr/lib/cgi-bin/  so I change my 
> /var/www/index.html's form point to it
> 
> <form method="POST"   action="http://www.linuxspice.com//cgi-bin/test-cgi";>
> 
> after I use my browser to hit the submit bottom, it show Forbidden
> 
>   You don't have permission to access //cgi-bin/test-cgi on this server.

Do you have any book stores near you?  There are a lot of great CGI
programming books available -- I think you would end up saving yourself a
lot of time by taking a break and doing some reading.

Learn a language first, like Perl, then worry about CGI programming.  CGI
is a very basic interface, but trying to understand how to program, how a
web server works and how to combine that into a CGI application is a lot
to do all at once.

I would strongly recommned Perl over C if you are trying to decide --
there's just so many tutorials, examples (bad and good) and useful Perl
modules available that it makes Perl a good way to go.  But, trying to
learn CGI by posting questions to lists is the hard way.

I don't think that a linux list, nor a list for installing and configuring
Apache is your best choise as a place to learn how to write CGI programs.  
Take advantage of the hard work others have put in writing books and
CGI tutorials.


> Apache/1.3.26 Server at default.itsyourdomain.com Port 80
> 
> even I chmod 777 test-cgi
> 
> need advancer's advice

If you are doing that you need to also read about CGI security and unix
permissions.


-- 
Bill Moseley moseley@hank.org




Reply to: