Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42955 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34386 invoked from network); 5 Feb 2009 21:07:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2009 21:07:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.116 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.116 us-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [63.205.162.116] ([63.205.162.116:51911] helo=us-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/CA-16965-1155B894 for ; Thu, 05 Feb 2009 16:07:30 -0500 Received: from [192.168.16.104] ([192.168.16.104]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 5 Feb 2009 13:08:33 -0800 Message-ID: <498B550E.1070600@zend.com> Date: Thu, 05 Feb 2009 13:07:26 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Terry Braun CC: internals@lists.php.net References: <498B01E6.2010605@talking.com> <2dedb8a0902050808u1c2425c6l69e1379e60b8abb6@mail.gmail.com> <1233851873.8601.28.camel@goldfinger> <498B4525.3050602@talking.com> In-Reply-To: <498B4525.3050602@talking.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Feb 2009 21:08:33.0011 (UTC) FILETIME=[E7004C30:01C987D5] Subject: Re: [PHP-DEV] adding support for PHP to a web server From: stas@zend.com (Stanislav Malyshev) Hi! > naive question - can I just exec php and pipe input and output? There is > probably some good reason that is not obvious to me. The good reasons for using FCGI are: - environment passing - headers handling - POST passing - stderr handling - performance - creating new process is very expensive - structure - people already thought about a bunch of things when creating this protocol that may not be obvious at first - wide support - a lot of FCGI implementations exist, both server and client There's also SCGI which is much simpler than FCGI but no official PHP driver for it yet (it's really so simple you could probably implement it in PHP too, but lose some of the advantages). -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com