Welcome, Guest
  • Author Topic: Amfphp and Pear: DB_DataObject  (Read 2380 times)

    titouille

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    Amfphp and Pear: DB_DataObject
    « on: 05/14/03, 18:22 »
    Hello Everybody !!!


    I have a little problem...

    When I have worked with php, I have always used Pear: DB_DataObject for transactions between html pages and bdd.

    When I have tested it with amfphp, I have try to connect with DataObject and pass DataObject object to Flash, but the following lines in my php service file stop the flash request :

        // initialisation of DB_dataObject class
        $options = &PEAR::getStaticProperty('DB_DataObject','options');
        $config = parse_ini_file('config.ini',TRUE);
        $options = $config['DB_DataObject'];

    I don't understood why the service doesn't play...

    if you want more informations about DataObject, please check at http://pear.php.net/ DB_DataObject section
    If you want to test DB_DataObject, download on cvs last versions of PEAR.php and DB_DataObject files.

    Thanks for any answer


    Thierry
    « Last Edit: 05/14/03, 18:28 by titouille »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:Amfphp and Pear: DB_DataObject
    « Reply #1 on: 05/15/03, 05:43 »
    Since PEAR wraps the content in his own packet, the dataset should be supported and deserialized correctly by the amfphp lybrary. Currently MySQL, obdc and postgres dataset are supported (see SQL folder) and correctly serialized, but not Pear DB_DataObject. PEAR SOAP is in testing now for Web services, but no news about PEAR DB_DataObject.
    Perhaps you can write your own method (see MySQL recordset as an example in the SQL folder) and add to the suported datasets, you just need to reorganize the packet as Flash Remoting expects (an array with column names and fields) and post to the developper list as an add.

    Jorge