NYCPHP Meetup

NYPHP.org

[nycphp-talk] RE: Sending OCI array through XML_RPC

Daniel Convissor danielc at analysisandsolutions.com
Fri Jul 8 16:04:25 EDT 2005


On Tue, Jul 05, 2005 at 06:34:34PM +0100, Michael Lynch wrote:

> I'm afraid I'm still stumped by converting a multi-row result into
> something that XML_RPC can handle.

    // pseudo code
    $rows = array();
    while ($rows[] = oci_fetch_array($stmt, OCI_ASSOC));
    $params = array(XML_RPC_Encode($rows));
    $msg = new XML_RPC_Message('somemethod', $params);

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list