I want to write a PHP script that can retrieve information from UniData Database which is hosted on a different server.
I came across this script:
<?php
$UdSession = new COM("UniObjects.unioaifctrl");
$UdSession->HostName = "192.168.0.1";
$UdSession->AccountPath = "c:\ibm\mydemoaccount";
$UdSession->UserName = "admin";
$UdSession->Password = "password";
$UdSession->Connect();
?>
I downloaded asjava.zip
from http://trac.spatialytics.com/geokettle/browser/trunk/libext/JDBC/asjava.zip?rev=1
and placed the unzipped folder in the root directory of my source code.
When I tried to run this php script, I encountered error as such:
Failed to create COM object UniObjects.unioaifctrl
Please let me know how I can rectify the problem.
Additionally, my localhost is currently running on Windows. Eventually I wish to run the code on Mac OS. I heard about using UniObjects for Java. Where can I download this library and how do I incorporate this library in my code?
Thank you.