Hi,
Take a look at sapi/php_embed/
You'll need a good skill in PHP engine this SAPI module is a good example.
----- Original Message -----
From: "Ben Trafford" <[EMAIL PROTECTED]>
To: <internals@lists.php.net>
Sent: Tuesday, February 21, 2006 11:31 AM
Subject: [PHP-DEV] Anybody written a Java SAPI?
Hello!
And here I am, back with more SAPI questions. Having abandoned my earlier
project as unworkable, I'm trying to build a MUD server in Java...and I
want people from within the MUD server to be able to access functions
written in PHP. Seems like an ideal situation for a SAPI.
I've seen JSR 223 from the Java community, but it appears only be focused
on servlets, which doesn't help me much. Basically, my requirements are
similar to my earlier questions on the list -- I want to be able to send
out a request, with arguments, to the PHP interpreter, and either return
nothing or return a string to the MUD server (which is Telnet-based).
Has anybody written a SAPI for a straight Java application? I'm just about
ready to get started on the project, but I can't find any examples or
documentation for anybody doing anything like this, nor any really good
documentation on writing SAPIs. I don't think the Embed SAPI is going to
work for my purposes, but I'm willing to be convinced otherwise.
Just to be clear: I don't want to make PHP use Java objects; I want a Java
application to use PHP.
Thoughts? Pointers? Help?
Thanks!
--->Ben
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php