httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <nood...@gmail.com>
Subject Re: [users@httpd] How can I write a cgi using c/c++?
Date Tue, 10 Jul 2007 09:26:14 GMT
On 10/07/07, ying lcs <yinglcs@gmail.com> wrote:
> Thanks. That is what I am looking for. How can I put your test program
> running in apache and how can I  invoke that via my browser?

First you'll need to compile it. Hopefully you're using an operating
system that bundles a C compiler :-)

$ cc hello.c -o hello.cgi

Then copy the hello.cgi executable to somewhere in your web root
designated to run cgi-scripts, using any of the methods described
here:

http://httpd.apache.org/docs/2.2/howto/cgi.html

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message