• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Call an External Stored Procedure from PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Call an External Stored Procedure from PHP

    Anybody have any luck calling a CL program from a PHP script? I am using the db2_connect to connect to my iSeries.
    <CODE>
    PHP Code:
    <?php
    $options 
    = array(
    'i5_naming' => DB2_I5_NAMING_ON,
    'i5_libl' => 'RFID'
    );

    $i5 db2_connect("*LOCAL"""""$options);

    $sql "CALL RFID.PROCESSRFID";
    $stmt db2_prepare($i5$sql);

    db2_execute($stmt);

    db2_close($i5);

    ?>
    </CODE>
Working...
X