/* The c file */
#include <stdio.h>
int main() {
printf("Content-type: text/html\n\n");
printf("Test for HTML");
return 0;
}
then compile
$ cc -o testc testc.c
then a perl file
#!/usr/bin/perl
print `./testc`;
it just worked, i guess this is not the perfect way, but can give more perfomance to the scripts.
any comments
On 9/18/05, Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:
any comments
On 9/18/05, Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:
Dear All,
I was just wondring that as long as we can use a perl file in apache to display some content, can't we use a C compiled file instead.
in perl I only have to issue
print "Content-type: text/html\n\n";
before the html tags.
so If I used C can't it be running?
Just wondering, if so how can I do it.
--
Ala'a A. Ibrahim
http://360.yahoo.com/bai_83
--
Ala'a A. Ibrahim
http://360.yahoo.com/bai_83
_______________________________________________ General mailing list [email protected] http://mail.jolug.org/mailman/listinfo/general_jolug.org
