Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77401 invoked by uid 1010); 21 Feb 2006 10:31:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77385 invoked from network); 21 Feb 2006 10:31:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2006 10:31:25 -0000 X-Host-Fingerprint: 206.130.11.96 unknown Linux 2.4/2.6 Received: from ([206.130.11.96:36282] helo=ns1.knowone.ca) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 45/0A-45151-BFBEAF34 for ; Tue, 21 Feb 2006 05:31:24 -0500 Received: from DeathstarV.prodigal.ca (d141-110-37.home.cgocable.net [24.141.110.37]) (authenticated bits=0) by ns1.knowone.ca (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k1LAS5jt015218 for ; Tue, 21 Feb 2006 05:28:09 -0500 Message-ID: <6.2.1.2.2.20060221052620.050965b0@mail.prodigal.ca> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Tue, 21 Feb 2006 05:31:16 -0500 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; x-avg-checked=avg-ok-4D1F17C5 Subject: Anybody written a Java SAPI? From: ben@prodigal.ca (Ben Trafford) 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