471,853 Members | 1,636 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

include xmlrpc ...

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
4 8063
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

"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
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

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

Similar topics

1 post views Thread by Roger Keays | last post: by
reply views Thread by Juan Carlos CORUÑA | last post: by
6 posts views Thread by Michael Urman | last post: by
1 post views Thread by Joxean Koret | last post: by
1 post views Thread by emielvl | last post: by
3 posts views Thread by Manuel | last post: by
reply views Thread by Benjamin Grieshaber | last post: by
4 posts views Thread by care02 | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.