Jump to content

Recommended Posts

Posted

hi there,

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

<?php
 /* <!-- 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?

 

Thanks

 

 

 

 


 

Posted (edited)

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
typo
  • 10 months later...
  • 2 years later...
Posted (edited)
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
  • 2 years later...

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.

Guest
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...