[Mono-list] Mapping PHP and Mono

Christophe Lauer clauer@free.fr
Sun, 02 Feb 2003 13:08:39 +0100 (CET)


Hi all,

En réponse à Sterling Hughes <sterling@bumblebury.com>:
> Hi,
> 
> I'm working on making mono and php talk with each other, I figure
> since PHP# is probably a way off, it should be easy enough to use
> mono's C api to create overloaded objects.

Isn't this the purpose of the PHP extension ext/rpc/dotnet?

More here:
http://cvs.php.net/cvs.php/php4/ext/rpc/dotnet 
http://cvs.php.net/co.php/php4/ext/rpc/dotnet/README?r=1.1 
http://cvs.php.net/co.php/php4/ext/rpc/dotnet/README?r=1.1.16.1  

They provide a short sample :

<?php
  $stack = new DOTNET("mscorlib","System.Collections.Stack");

  $stack->Push(".Net");
  $stack->Push("Hello ");

  echo $stack->Pop() . $stack->Pop();
?>

It's two years old, in experimental status, and doesn't seem to be very 
active, but...

Regards,
Christophe Lauer

-- 
Christophe Lauer :  http://clauer.free.fr - mailto:clauer@free.fr
Le site de la communauté .NET Francophone :  http://www.dotnet-fr.org/