huanxing.wu Posted June 23, 2017 Report Posted June 23, 2017 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 Quote
huanxing.wu Posted June 26, 2017 Author Report Posted June 26, 2017 Hi @Erik Geurts @andrewatfornax I'm facing this issue for long times , could u kindly help me a bit? how can I import the required PHP files so that I can make the XML RPC TAG work ? Thanks very much Quote
andrewatfornax Posted June 27, 2017 Report Posted June 27, 2017 Hi @huanxing.wu, It's in the Revive Adserver lib/xmlrpc/php directory. Quote
huanxing.wu Posted June 28, 2017 Author Report Posted June 28, 2017 (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 June 28, 2017 by huanxing.wu typo Quote
andrewatfornax Posted June 28, 2017 Report Posted June 28, 2017 Hi @huanxing.wu, 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. Quote
Artistan Posted May 7, 2018 Report Posted May 7, 2018 for those still looking... you can use the composer package that i just whipped up last week. https://packagist.org/packages/artistan/revive-xmlrpc Quote
yashmeena Posted August 12, 2020 Report Posted August 12, 2020 (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 August 12, 2020 by yashmeena Quote
azazeazeazeazeazeazeazeaze Posted October 20, 2022 Report Posted October 20, 2022 Hi 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. https://github.com/revive-adserver/revive-adserver/pull/1403 Quote
Recommended Posts
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.