# >> How to Establish Bi-Directional Pipe to PHP Via ANSI "C" <<

- Thread: https://externals.io/message/10654
- Original archive: https://news-web.php.net/php.internals/10654
- Started by Larry Adams on 2004-06-20T15:44:33+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10654 — Larry Adams — 2004-06-20T15:44:33+00:00

URL: https://externals.io/message/10654#10654

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
