C\C++ interpreter >>> CH >>>If Work on FCG

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
kukiz
-


Joined: 07 Apr 2006
Posts: 6

PostPosted: Fri Apr 07, 2006 10:00 pm    Post subject: C\C++ interpreter >>> CH >>>If Work on FCG Reply with quote

Hi everybody

I would like to train with http://www.softintegration.com/ on Abyss Web Server.

If CH work on Abyss Web Server with FASTCGI ?
Back to top View user's profile Send private message
kukiz
-


Joined: 07 Apr 2006
Posts: 6

PostPosted: Sat Apr 08, 2006 8:17 am    Post subject: C\C++ interpreter >>> CH >>>If Work on FCG Reply with quote

If somebody has experience with it ???

Help please.
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Apr 08, 2006 10:37 am    Post subject: Reply with quote

That looks pretty interesting actually.
I see no reason why it wouldn't work as a CGI as long as your script outputs the correct CGI headers. (Although I doubt it would work with FastCGI.)
And try being a little more patient.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Apr 08, 2006 3:21 pm    Post subject: Re: C\C++ interpreter >>> CH >>>If Work on Reply with quote

kukiz wrote:
Hi everybody

I would like to train with http://www.softintegration.com/ on Abyss Web Server.

If CH work on Abyss Web Server with FASTCGI ?

CH seems to support CGI. So it will work with Abyss Web Server with no problems.

To convert a CGI program in C/C++ embedding CH into a FastCGI application, you'll have to edit the source code and apply a slight change described below. The program should also be linked with teh FastCGI library available from http://www.fastcgi.com.

The change to apply to the source code is explained in http://www.fastcgi.com/devkit/doc/fcgi-devel-kit.htm#S3.1 . It consists in transforming the main() function from:

Code:
int main()
{
    Instruction 1;
    Instruction 2;
    ....
    Instruction N;
}


to

Code:
#include "fcgi_stdio.h"

int main()
{
    while(FCGI_Accept() >= 0)
    {
         Instruction 1;
         Instruction 2;
         ....
         Instruction N;
     }
}

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
genroxbro
-


Joined: 18 Jul 2009
Posts: 3
Location: Canada

PostPosted: Wed Jul 29, 2009 12:04 am    Post subject: CC interpreter t t t CH t t t If Work on FCG Reply with quote

So, if I put the specific sub-routine of my script into the /var/www/ directory and require it to run from the main script in my cgi-bin, might that work?

I shall try it but, I wondered if you guys knew the answer so I wouldnt go down a dead end.

bazz
_____________________________________
Website I designed for online cash advance company.
Back to top View user's profile Send private message Send e-mail ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group