Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42819 invoked by uid 1010); 20 Jun 2004 15:44:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42747 invoked by uid 1007); 20 Jun 2004 15:44:24 -0000 Message-ID: <20040620154424.42701.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "Larry Adams" Date: Sun, 20 Jun 2004 11:44:33 -0400 Lines: 21 Organization: The Adams Family X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Posted-By: 68.41.36.22 Subject: >> How to Establish Bi-Directional Pipe to PHP Via ANSI "C" << From: larryjadams@comcast.net ("Larry Adams") Hi, Does anyone have example C code to establish a pipe to PHP using something like file descriptors, sockets, etc. that can allow me to send multiple file processing requests to PHP without the overhead of calling POPEN repeatedly and having to reload the PHP executable? I would like to load PHP in memory once and then send commands to the pipe, for example "-f myfileA.php\n" "-f myfileB.php\n" have each command executed via the pipe and have the result of the script returned via the standard output file desciptor. Any help would greatly be appreciated. Regards, Larry Adams larryjadams AT comcast DOT net Warren/Michigan