473,856 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8196
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**********@r ediffmail.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.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**********@r ediffmail.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.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**********@r ediffmail.com> wrote in message
news:11******** *************@j 55g2000cwa.goog legroups.com...
elyob wrote:
"R. Rajesh Jeba Anbiah" <ng**********@r ediffmail.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2293
by: Roger Keays | last post by:
Can anybody recommend the best xmlrpc library for php? My observations so far are that: * the PEAR XML_RPC package is undocumented * the php xmlrpc extensions are undocumented and require downloading extra code for the client functions * the usefulinc (http://xmlrpc.usefulinc.com/) is not supported by the php team Thanks in advance,
0
1745
by: Juan Carlos CORUÑA | last post by:
Hello all, I'm trying to create a COM Server with an embedded xmlrpc server. Here is way it must work: - The client application (programmed with a COM capable language) instantiates my COM server (programmed with python). - The COM server must have a connect interface in order to let the client application process the xmlrpc request. - After executing a "serveforever" method on the COM server it begins
6
5372
by: Michael Urman | last post by:
Hi. I'm a user of python for about 3 years now. I've written a client-server application that uses SimpleXMLRPCServer and xmlrpclib.ServerProxy to communicate. It's intended to be used by a single-person as a backend and GUI frontend. I've got it running great. Much stabler than my custom RPC I'd tried before. I've used the default support available by these classes. Thus it will run on a potentially public TCP/IP port. As the...
1
2805
by: Joxean Koret | last post by:
Hi to all! I'm having troubles to make my XMLRPC application working with non ASCII characters. Example: 1.- In one terminal run the following script: -----------XMLRPC Server-------------
1
3224
by: emielvl | last post by:
Hello, I'm developing a client/server architecture based on the XML-RPC implementation in php4. All works pretty well, except that in the response from the server there is no "Content-Length" in the header. Since the XML-RPC specification requires this header to be present in the server response, some libraries (notably: libxmlrpc++) choke on this. For clarity, here's a (simple) server (slightly altered from:...
3
2848
by: Manuel | last post by:
Hello I need a xmlrpc lib for c++. I know two: xmlrpc++ and xmlrpc-c. But i don't know that it is best for me. I am developing an application in c++. I read that the xmlrpc-c lib is in C and wrap the functions to use in c++. Well, i think that it is more difficult to use than xmlrpc++ that it is made in c++. The trouble is that the xmlrpc++ is stopped from 2003 and i think that it has got a lot of bugs unresolved but it is more simple...
1
2391
by: fortepianissimo | last post by:
I have a simple xmlrpc server/client written in Python, and the client throws a list of lists to the server and gets back a list of lists. This runs without a problem. I then wrote a simple Java xmlrpc client and it calls the python server. But I can't figure out what type to cast the result (of type Object) to. The Java xmlrpc call is basically this: Object result = client.execute("MyFunction", params);
0
2755
by: Benjamin Grieshaber | last post by:
Hi, I´m on SuSE 9.3 with xmlrpc-c and xmlrpc-c-devel installed (ver. 0.9.10) I tried to compile php with xmlrpc support and got the following errors: ext/xmlrpc/.libs/xmlrpc-epi-php.o(.text+0x359): In function `set_zval_xmlrpc_type': /php-5.2.5/ext/xmlrpc/xmlrpc-epi-php.c:1313: undefined reference to `XMLRPC_CreateValueDateTime_ISO8601'
4
3947
by: care02 | last post by:
I have implemented a simple Python XMLRPC server and need to call it from a C/C++ client. What is the simplest way to do this? I need to pass numerical arrays from C/C++ to Python. Yours, Carl
0
9904
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10692
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10772
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10378
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7928
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7086
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4169
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.