Using PHP with Siebel COM Data Control

I recently came to know that PHP 5 supports COM controls meaning that you can instantiate a registered DLL on your system and call it’s function and perform stuff. So, I decided to put it to test and see if I am able to use Siebel COM Data Controls in PHP.

A quick setup with WAMP, CodeIgniter and Bootstrap got me running and here is the very first thing I created with this: “Server Component Monitoring Screen”

 

image

 

Now some of you may ask why did I need to do that, Siebel already provides a screen for this. Well, since we moved to Siebel patch 8.1.1.3 the only way to access the components was either through command line srvrmgr command or dedicated client, as this patch had conflict with Siteminder/S3 authentication we were using for our environments.

Here is the code snippet I used to connect to Siebel.

I store the connection details in a MySQL DB and retrieve then while making connection. The code is self explanatory and the only tricky part in it is creating the connection string.

I will be more than happy to answer any questions or comments you might have.So, what are you waiting for bring it on !!!

This Post has been viewed : 8,605 Times


10 Responses to Using PHP with Siebel COM Data Control

  1. Hi Siebelunleashed!

    I already tried to implement the proposed solution a while ago, but concluded that the Siebel DLLs most probably are not up the task to be implemented with PHP. Luckily you proved me wrong!
    The above code doesn’t tell anything about php.ini settings or include the DLL’s of Siebel dynamically. Could you share how you done this part?
    Thanks!
    -Remi

    • Glad to hear it was useful for you. There was no change in PHP.ini file for this implentation. Nothing explicit was required to include siebel com data control.
      This link explains about the dll that should be registered on your system for this work.

      http://siebelunleashed.com/siebel-com-data-control-introduction/
      If you have siebel tools or client installed then you should be able to make this work with vanilla installation of WAMP.

      Are you facing any issue to make this work?

  2. Hi siebelunleashed. This is an excellent topic. I’d like to know more about this. I have xampp installed and a Siebel client with sample Database, is posible with this to develop something in php?. Is there any kind of tutorial to develop this? hank you

  3. Hi siebelunleashed. This is an excellent topic. I’d like to know more about this. I have xampp installed and a Siebel client with sample Database, is posible with this to develop something in php?. Is there any kind of tutorial to develop this? hank you

Leave a Reply

Contribute