[muscle] Re: PHP Extension for MUSCLE client API

  • From: "Jeremy Friesner" <jaf@xxxxxxxxxxxx>
  • To: muscle@xxxxxxxxxxxxx
  • Date: Wed, 18 Jan 2006 21:39:47 PST (-0800)

Hi Jessica,

I'm not very familiar with PHP, so I can't really give any good advice
on how to write a PHP extension.  MUSCLE does have client APIs
for Python, Java, C#, and C, however, so if you could use any of
those languages instead (or possibly find a way to run code written 
in those languages from a PHP script... I don't know if that is possible 
or not) then that might be a solution for you.

Aside from that, the remaining options would be to write a PHP extension
that calls the C or C++ code for you, or write your own native PHP code
to receive, parse, generate, and send MUSCLE messages.  Neither of
those two options would be very easy, but if you want to give it a try
let me know and I will point you to the relevant MUSCLE documentation.

-Jeremy

ps here is a link about calling Java code from PHP:  
http://www.phpbuilder.com/manual/ref.java.php

> For something I'm going to be experimenting with, I'm going to need to 
> make a PHP extension for PHP5 5.1.1. I have MUSCLEd compiled and 
> running on a FreeBSD server.  The problem is that I've not built a PHP 
> extension for any version of PHP4 or PHP5, nor do I work with C++.  
> Guidance and assistance in helping build the MUSCLE client API as a PHP 
> extension is greatly appreciated.
> 
> ~Jessica
> 
> 



Other related posts: