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.

 
Go Back  dBforums > Database Server Software > DB2 > i5_connect Zend PHP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-09, 11:44
tdavis tdavis is offline
Registered User
 
Join Date: Mar 2009
Posts: 6
i5_connect Zend PHP

I am new to using PHP ZendCore on i5/OS iSeries, so I am in the process of writing some test programs just to learn. I have successfully written a PHP script using i5_connect to call an RPG program on the iSeries that returns some data to the script, which simply displays the returned data in the browser. It works fine, but the process of defining the parameters is tedious.

I have some stored procedures on the iSeries, which are actually RPG programs, that return lots of data in parameters, one in particular has about 75 returned values. That would be VERY tedious doing it the way I used in my first test.

Should I use db_connect? I tried that first, but was unable to connect. I am not sure how it would pass parameters, but is it any better than i5_connect? Is there any secret about stored procedures that would help?

I would also like to use a stored procedure that returns a results set, but that would not involve parameters, so how does that work?

Thanks for any help you can give!
-tdavis
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On