Re: FastCGI and PHP

From: Date: Fri, 20 Apr 2001 11:03:50 +0000
Subject: Re: FastCGI and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49538@lists.php.net to get a copy of this message
On Wed, Apr 18, 2001 at 01:58:03PM +0200, Alexander Skwar wrote: > (Learning from my last mistake, I'll now try to make clear right away what > each sentence means *G*) > > Introductory lines: > I want to write a FastCGI compatible PHP script. In order to do so, PHP > obviously need to recompile PHP with '--with-fastcgi'. However, looking at > some PERL FastCGI scripts, I see that they mainly consist of a while loop > like this: > > while( FCGI::accept() >= 0 ) { > foo(); > FCGI::flush(); > } > > Questions: > What are the PHP equivalents to FCGI::accept() and FCGI::flush()? there is noe. in fast-cgi mode you scripts are executed the same way as if you were running as an apache module. there's no support to keep your script alive over request-boundaries (yet). tc

« previous php.general (#49538) next »