Dawn Wolthuis wrote: > I know I've read about this topic on the list before, but > it is hard to find with a search because of all of the > URL's with "php" in them. > > What are the options for communicating with UniData from > PHP? Thanks. --dawn
Hi Dawn. I had the same question about D3 and asked about it in one of the RD forums. The answer was so easy, I posted a response to my own question in less than two hours - funny how these epiphanies come only _after_ you ask someone else. Here is a link to the question and answer. http://forums.rainingdata.com/index.php?showtopic=869 That's not a direct connect, and I'm still looking for a better way. It uses FlashCONNECT on the D3 server to respond to an HTTP request, the output of which is parsed back in PHP. As you know, U2 like D3 has several ways to respond to a web request so the back-end can be done any way you like. You can also execute command-line functions direct from PHP, providing another way to get into U2, but I wouldn't do this on a high activity web page considering the potential overhead. See: http://us3.php.net/features.commandline and note how they handle STDIN and STDOUT. I think the right way to do this would probably be with a connectivity library. PHP supports instantiation of COM objects and .NET assemblies over Win32. http://us2.php.net/COM So you can use tools like UO, InterCall(?), UO.NET, or mv.NET. Since PHP supports OOP, classes, etc, if you want cross-platform capabilities you/someone can write a socket interface and wrap it in a connectivity class which can be called from any PHP code. The class can/should be modeled after UO/UOJ for consistency. Speaking of UOJ, closer to home for you is a PHP>Java interface, but this page says "EXPERIMENTAL" - so use at your own risk. http://us3.php.net/java Please let me know if I can help any further. My best, Tony Nebula R&D TG@ removethisNebula-RnD .com ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
