| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		kukiz -
 
  Joined: 07 Apr 2006 Posts: 6
 
  | 
		
			
				 Posted: Fri Apr 07, 2006 10:00 pm    Post subject: C\C++ interpreter >>> CH >>>If Work on FCG | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		kukiz -
 
  Joined: 07 Apr 2006 Posts: 6
 
  | 
		
			
				 Posted: Sat Apr 08, 2006 8:17 am    Post subject: C\C++ interpreter >>> CH >>>If Work on FCG | 
				      | 
			 
			
				
  | 
			 
			
				If somebody has experience with it ???
 
 
Help please. | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		MonkeyNation -
 
  Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
  | 
		
			
				 Posted: Sat Apr 08, 2006 10:37 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			              | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Sat Apr 08, 2006 3:21 pm    Post subject: Re: C\C++ interpreter >>> CH >>>If Work on | 
				      | 
			 
			
				
  | 
			 
			
				
 
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 | 
		
			           | 
		
	
	
		  | 
	
	
		genroxbro -
 
  Joined: 18 Jul 2009 Posts: 3 Location: Canada
  | 
		
			
				 Posted: Wed Jul 29, 2009 12:04 am    Post subject: CC interpreter t t t CH t t t If Work on FCG | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			            | 
		
	
	
		  | 
	
	
		 |