On 9/18/05, Anubis HH <[EMAIL PROTECTED]> wrote:
Why would you need such performance gain?
--- Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:
> it's when you use C to do some job for you with the
> -O2 option to the gcc
> you can get a little more performance that's all.
>
> On 9/18/05, Yaman Saqqa <[EMAIL PROTECTED]> wrote:
> >
> > You didn't have to call it from a perl script!!!
> As long as as your
> > 'testc' is in a 'Directory' that is configured as
> a CGI directory in apache
> > and the file is executable, it can be called
> directly. I would rename it to
> > testc.cgi.
> >
> > ScriptAlias /cgi-bin/ /usr/lib/mycgi/
> > <Directory /usr/lib/mycgi>
> > .
> > .
> > Options ExecCGI
> > .
> > .
> > </Directory>
> >
> > now http://myhost/cgi-bin/testc.cgi
> >
> > I didn't really get your comment about
> performance? Can you elaborate?
> >
> > On 9/18/05, Ala'a Ibrahim <[EMAIL PROTECTED] >
> wrote:
> >
> > > hay look at this
> > >
> > > /* 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:
> > >
> > > > 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
> > >
> > >
> > >
> >
> >
> > --
> > abulyomon
> >
> > www.KiLLTHeUPLiNK.com
> < http://www.KiLLTHeUPLiNK.com>
> > _______________________________________________
> > General mailing list
> > [email protected]
> >
>
http://mail.jolug.org/mailman/listinfo/general_jolug.org
> >
> >
> >
>
>
> --
> Ala'a A. Ibrahim
> http://360.yahoo.com/bai_83
> > _______________________________________________
> General mailing list
> [email protected]
>
http://mail.jolug.org/mailman/listinfo/general_jolug.org
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org
--
Ala'a A. Ibrahim
http://360.yahoo.com/bai_83
_______________________________________________ General mailing list [email protected] http://mail.jolug.org/mailman/listinfo/general_jolug.org
