[Novalug] apache cgi calling c function
James Ewing Cottrell 3rd
JECottrell3 at Comcast.NET
Thu Dec 21 21:01:29 EST 2006
AFAIK, the CGI doesn't care what language a script is written in. It
simply exec's the file, hands it some environment variables, possibly
some arguments and standard input, and interprets the standard output as
HTML, optionally adding some headers.
Make the C function into an executable program that obeys the CGI API.
JIM
Navjeet wrote:
> On puppyOS (embedded Linux) I need to call some c function from
> apache. This function will most likely return an xml string. What are
> the options with apache to accomplish this?
>
> One way could be use swig to generate a php wrapper for c code and
> then call that wrapper from php script.
>
> Since it is embedded linux I would like to minimize the
> applications/languages to be installed to accomplish this.
>
> Thanks.
>
>
> --
> Navjeet (http://www.javaah.com)
> Blog: http://chabbewal.blogspot.com
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Novalug mailing list
>Novalug at calypso.tux.org
>http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 12/20/2006 3:54 PM
>
>
More information about the Novalug
mailing list