[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fastcgipp-users] Fastcgi++ as a client to PHP fastcgi?

From: Konstantin Ivanov
Subject: Re: [Fastcgipp-users] Fastcgi++ as a client to PHP fastcgi?
Date: Mon, 28 Dec 2009 15:18:09 -0800 (PST)


Thank you for the response. Why can't you image anyone want to do this? This is how the majority of the web servers accomplish the task of having either of the interpreted languages (PHP, perl, ruby) served by the web server. Lets take something like lighttpd. The fastcgi module provided by the community of lighttpd project is what I meant by the client functionality: ability to use PHP and communicated to PHP Process through FastCGI protocol while serving web pages from lighttpd.

Request (http://localhost/test.php)   -> Server parse(parse the request)   -> FastCGI module (call the PHP process through fastcgi protocol, get a response) -> render to client. 

The above path of execution, while very simple and possibly lacking detail, is the standard flow that many of those servers use to server pages interpreted in PHP, Perl, etc. While the main fastcgi site provides some libraries for communicating with fastcgi servers and processes, it is overcomplicated. 


From: Eddie Carle <address@hidden>
To: Konstantin Ivanov <address@hidden>
Cc: address@hidden
Sent: Mon, December 28, 2009 3:03:17 PM
Subject: Re: [Fastcgipp-users] Fastcgi++ as a client to PHP fastcgi?

On Mon, Dec 28, 2009 at 1:58 PM, Konstantin Ivanov
<address@hidden> wrote:
> Hi all,
> I wanted to know if it is possible to use fastcgi++ library to forward the
> requests to PHP FastCGI? I guess that would mean that fastcgi++ will act as
> a filter if I am correct. So, i was wondering if the library supports
> such functionality and if there are any samples available.
> Thank you,
> K

Hmmm, can't imagine why one would want to do this, but this is
certainly possible. fastcgi++ itself doesn't actually have any "client
side" FastCGI mechanisms built in to it (by "client side" I refer to
the web server itself as the client and the FastCGI script as the
server). To accomplish this you would have to recieve requests from
the web server, filter, then connect to the PHP FastCGI script and act
like a web server itself. I'd read up a bit on the FastCGI protocol to
understand how this would take place.
    Eddie Carle

reply via email to

[Prev in Thread] Current Thread [Next in Thread]