This is due to the way PHP handles objects: very very bad.
Until version 5 is out, you should always & assign objects you create:
$c =& new xmlrpc_client("/XMLRPC/server.php", "slate", 80);
Otherwise the object gets created by 'new' and then duplicated (i.e. created again) by
'='
_
t/received to the specified char encoding or leave this task to the app
layer?
- Finally, (this was probably answered by Edd many moons ago, but I cannot find it
anymore) why is htmlentities() used to escape the string data in xml messages instead
of a plain translation of '<' and
Can you be more specific with the kind of error you are having?
One wild stab: I've noticed your second city has an accented name. Try out using
iso-8859-1 as default charset encoding (it is defined in xmlrpc.inc) and see if it
helps
Gaetano
___
php
Uhm, the code looks somewhat broken, as far as I can tell.
Comments below (in italiano)
> -Messaggio originale-
> Da: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] conto di TeddyZ
> Inviato: lunedi 21 luglio 2003 22:27
> A: [EMAIL PROTECTED]
> Oggetto: [phpxmlrpc] DB result and array
>
>
Let's see if I get it straight...
>
> Hi there,
>
> Unfortunately I have a problem with the client lib "xmlrpc.inc":
>
> In the Documentation http://xmlrpc.usefulinc.com/doc/xmlrpcval.html
> I read:
> The elements of the array must be xmlrpcval objects themselves.
>
> Now, I do a request via $
Sorry, error description is far too vague to
be helpful.
Did you get right the:
- server name
- url
- port
in your send statement?
Quick debugging: try to access the
same URL using a browser and see what happens
Bye
Gaetano
-Messaggio originale-Da:
[EMAIL PROTECTED] [mail
...
>
> And this is my function, in my server file:
>
>
> function showMovies() {
>
> $conn = mysql_connect("localhost","user","pwd");
> $db = mysql_select_db("amptestsite",$conn);
> $result = mysql_query("SELECT * FROM movies ORDER BY
A very handy function you can ofetn make use of is
$arr=xmlrpc_decode($xmlrpc_val);
Returns a PHP variable or array stuffed with the values found in the xmlrpcval
$xmlrpc_val, translated into native PHP types.
> -Messaggio originale-
> Da: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] c
It might not be the final solution, but if you take a look at the latest patch I
posted on sourceforge, there is a possible 'transition' out of this problem:
- if the PHP XML libraries built in are available, it will register 'our' functions
with new names (e.g. xmlrpc_encode_new : to be agreed
You're
asking in the wrong place: this list is dedicated to the xmlrpc library for PHP
called phpxmlrpc
-Messaggio originale-Da:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Per
conto di ShajeeInviato: lunedì 7 giugno 2004 23:53A:
[EMAIL PROTECTED]Oggetto: [phpxmlrpc] Regardi
It might have to do with character encoding, but this is just a wild guess.
By default xml-rpc lib expects content to be UTF8 encoded, so iso-8859 chars outside
of the ascii range might cause trouble.
To find out more you should take a look at the xml chunk received by the server before
it is d
11 matches
Mail list logo