Re: [PHP4BETA] embedding php
| From: | David Hedbor | Date: | Fri, 26 Nov 1999 05:09:11 +0000 |
| Subject: | Re: [PHP4BETA] embedding php | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6904@lists.php.net to get a copy of this message | ||
Paul Dlug <pdlug@portjeff.net> writes:
> Can the php4 engine be embedded in another application like python or
> perl? I am currently writing an application where it's desirable to mix
> perl or python with php so I'm writing an interface layer in C to allow
> perl/python variables and function calls to communicate with php
> variables and functions. If the php4 engine is embeddable it would make
> things easier since I could just link the two engines in the same
> application and write an interface to translate between the two rather
> than embedding perl/python in my application and building into the php
> source code. Any ideas? Suggestions??
This is really what SAPI is all about. The Roxen module I'm working on
is really embedding PHP in pike. The PHP scripts doesn't have access
to any pike-level variables though, and I don't know how hard stuff
like that would be to implement. Probably significantly harder though.
--
[ Below is a random fortune, which is unrelated to the above message. ]
Biology grows on you.