Jump to content

how to use the xml rpc tag

Recommended Posts

hi there,

I'm able to get the xml rpc tag from revive as follow:

 /* <!-- Revive Adserver XML-RPC - Generated with Revive Adserver v4.1.0-dev -->  */
    //ini_set('include_path', '.:/usr/local/lib');
    require 'openads-xmlrpc.inc.php';

    if (!isset($OA_context)) $OA_context = array();

    $oaXmlRpc = new OA_XmlRpc('localhost', '/revive-adserver/www/delivery/axmlrpc.php', 80, false, 15);
    $adArray = $oaXmlRpc->view('zone:1', 0, '', '', 0, $OA_context, '');

    echo $adArray['html'];

then I put this tag on my php page, but  i come out with errors.

so where can I get the openads-xmlrpc.inc.php file so that make it work?








Link to comment
Share on other sites

Hi @andrewatfornax 

Thanks for help, I now manage to find the  openads-xmlrpc.inc.php file,

but I guess it won't work only by just copying the file to my PHP web app,

it still throw some undefined method errors,

so my question is:

how to correctly import all the files/libs so that the xmlrpc tag will work for a php web app?

(my php web app is NOT  hosted in the same server  as revive server)


Edited by huanxing.wu
Link to comment
Share on other sites

  • 10 months later...
  • 2 years later...
On 6/28/2017 at 11:17 AM, andrewatfornax said:

You will need to put the file in a location that PHP is configured to look for files to include in. That will depend on your PHP configuration.

Error: cannot load the PEAR XML_RPC class

any help..?

I will be your patreon supporter If you start to understand what are you trying to do..?

Edited by yashmeena
Link to comment
Share on other sites

  • 2 years later...


This post is a bit old but for information I've provided a patch to unlock this behavior.

Original code expect to have install xml/rpc pear code on the server and ignore lib provide by revive.

This patch take in consideration both situation and load lib from server or revive.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...