By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,368 Members | 1,704 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,368 IT Pros & Developers. It's quick & easy.

include xmlrpc ...

P: n/a
Hi, I've got --with-xmlrpc option in my php.ini and can see on my phpinfo
page. Now, how do I include this in some code? So far I've been downloading
xmlrpc into a folder and just calling it from there, but if it's already
installed what do I change to get this version working?

Currently, I am calling ... require("../xmlrpc/lib/xmlrpc.inc");

I tried ... require("xmlrpc.inc"); ... but with no luck.

Thanks


Jun 2 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
elyob wrote:
Hi, I've got --with-xmlrpc option in my php.ini and can see on my phpinfo
page. Now, how do I include this in some code? So far I've been downloading
xmlrpc into a folder and just calling it from there, but if it's already
installed what do I change to get this version working?

Currently, I am calling ... require("../xmlrpc/lib/xmlrpc.inc");

I tried ... require("xmlrpc.inc"); ... but with no luck.


When you enable any extension, you just use it's functions; you
don't need to include/require anything else.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jun 4 '06 #2

P: n/a

"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
When you enable any extension, you just use it's functions; you
don't need to include/require anything else.


Thanks, that makes complete sense but it's still not working here ... the
error I get is ..

PHP Fatal error: Class 'xmlrpc_client' not found

In the phpinfo() information I can see this ..

xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com
So, had kind of hoped it would work.... but am now presuming that
http://phpxmlrpc.sourceforge.net is different in the way that it works. I
will have to make quite a few code changes, presumably.

Here's the line that's not working ...

$xmlrpc_client = new xmlrpc_client("/services/xmlrpc", "www.flickr.com",
80);

Time to start looking at the differences ...


Jun 4 '06 #3

P: n/a
elyob wrote:
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
When you enable any extension, you just use it's functions; you
don't need to include/require anything else.


Thanks, that makes complete sense but it's still not working here ... the
error I get is ..

PHP Fatal error: Class 'xmlrpc_client' not found

In the phpinfo() information I can see this ..

xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com
So, had kind of hoped it would work.... but am now presuming that
http://phpxmlrpc.sourceforge.net is different in the way that it works. I
will have to make quite a few code changes, presumably.

<snip>

xmlrpc is a PHP extension <http://in2.php.net/xmlrpc> and that
means the functions are available like any other PHP functions once you
enable it. But, phpxmlrpc at sourceforge.net is another project that
provides PHP classes but source available in PHP; IOW, it's a PHP code.

You cannot expect the phpxmlrpc to work by enabling xmlrpc.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jun 5 '06 #4

P: n/a

"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:11*********************@j55g2000cwa.googlegro ups.com...
elyob wrote:
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
> When you enable any extension, you just use it's functions; you
> don't need to include/require anything else.
>


Thanks, that makes complete sense but it's still not working here ... the
error I get is ..

PHP Fatal error: Class 'xmlrpc_client' not found

In the phpinfo() information I can see this ..

xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com
So, had kind of hoped it would work.... but am now presuming that
http://phpxmlrpc.sourceforge.net is different in the way that it works. I
will have to make quite a few code changes, presumably.

<snip>

xmlrpc is a PHP extension <http://in2.php.net/xmlrpc> and that
means the functions are available like any other PHP functions once you
enable it. But, phpxmlrpc at sourceforge.net is another project that
provides PHP classes but source available in PHP; IOW, it's a PHP code.

You cannot expect the phpxmlrpc to work by enabling xmlrpc.


Yeah, figured that out when I was writing my reply. I think my mistake in my
mind was that I stuck phpxmlrpc in a folder called xmlrpc. So, when I was
fiddling about with my server I suddenly thought "why have two copies", but
couldn't get it to work. In my excitement, I didn't put it together that
they are two completely different things. I'll just stick with phpxmlrc for
the moment!

Thanks again
Jun 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.