probelms with RPC2 Client

440 views
Skip to first unread message

Krad

unread,
Aug 26, 2010, 7:38:36 AM8/26/10
to MailChimp API Discuss
Hello,

I keep getting the following problem when i try to run php -f xml-
rpc_lists.php

PHP Fatal error: require_once(): Failed opening required 'home/
leapfrog/php/XML/RPC2/Client.php' (include_path
='.:/usr/lib/php:/usr/local/lib/php') in /home/leapfrog/xml-
rpc_examples/xml-rpc_lists.php on line 7

I have looked in the dir usr/local/lib/php and there is no RPC2?

I have also tried to chnage the php ini with

ini_set('include_path', '/php');

and still get the same error but with the include path changed.

How do i config RPC2 as there is not much information arround.

jesse

unread,
Aug 26, 2010, 11:39:16 AM8/26/10
to MailChimp API Discuss
XML_RPC2 is a Pear package:
http://pear.php.net/package/XML_RPC2/

You'll need to install Pear and it on your system somehow. I believe
in a typical debian/ubuntu system that would be:
# apt-get install pear
# pear install XML_RPC2

Hopefully that's close. Either way, that's something you'll need to
work out on your own.

FWIW, having used both, there's no way I would XML-RPC over the
standard PHP wrapper we provide.


jesse

Krad

unread,
Aug 26, 2010, 1:24:43 PM8/26/10
to MailChimp API Discuss
I have already installed pears and used pear install XML_RPC2 which
ran ok

just having truble with the example files i downloaded from mail chip.

when you have require_once '/XML/RPC2/Client.php' it comes back with

PHP Fatal error: require_once(): Failed opening required 'home/
leapfrog/php/XML/RPC2/Client.php' (include_path
='.:/usr/lib/php:/usr/local/lib/php') in /home/leapfrog/xml-
rpc_examples/xml-rpc_lists.php on line 7

which i understand means it can't find the Client.php in the xml/rpc2/
dir?

however the file is there?

is there any forums that deail with the install of RPC2?
> > How do i config RPC2 as there is not much information arround.- Hide quoted text -
>
> - Show quoted text -

jesse

unread,
Aug 26, 2010, 2:57:11 PM8/26/10
to MailChimp API Discuss
The path you've had Pear install it in is not in your PHP include
path. That's a basic system configuration issue that you'll need to
work through and is not related to our code, pear, or the XML_RPC2
code.


jesse

Krad

unread,
Aug 27, 2010, 2:26:54 PM8/27/10
to MailChimp API Discuss
PEAR is differntly working on the server.
> > > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages