Re: PHP and CORBA

From: Date: Sat, 01 Jul 2000 16:11:09 +0000
Subject: Re: PHP and CORBA
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23153@lists.php.net to get a copy of this message
On Sat, 1 Jul 2000, Daniel Carlsson wrote: > Hi, > > I am making a web-interface to a CORBA system we have. > I thought that it would be great if I could write the interface in PHP. > To do that I need to be able to access CORBA objects from the PHP scripts. > I looked around but didn't find anything on this topic so I tested to write a > PHP-extension > to call the CORBA objects. It worked pretty good and am probably going with this approach. > I think I will create a PHP function that looks something like this: > > returnvalue CORBA_CALL(object_ior, operation_name, arg1, arg2 ... ) > > And some additional functions for initializing and fetching nameservices and objectreferences > and stuff like that. > > What I would like to know is if someone has built something like this before and you it went. > I would also like to know if this is useful for anybody else and if their is some smarter > approach > that is more generic and can be used by more people. CORBA support for PHP is possible. I'm currently working on it, using ORBit as ORB. Please read the php-dev archives for some previous discussion on this topic. Your approach with a single call might be simpler to implement, but it's a little to atomic for my personal taste. My system works with making my own PHP classes and using them something like this: $ior = "IOR:[0-9,a-f]*"; $success = orbit_load_idl("phptest.idl"); $env = new OrbitEnvironment(); $obj = new OrbitObject($ior, $env); $str = $obj->LoopString("nisse"); echo "$str\n"; My employer has not yet decided whether to release my work or not. Sincerely, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson

« previous php.dev (#23153) next »