Forum Moderators: coopster

Message Too Old, No Replies

Migrating XML-RPC to PHP 5

         

optik

2:33 am on Feb 14, 2009 (gmt 0)

10+ Year Member



Hi

I have been using a php script for XML-RPC on PHP 4 that was working fine, now I have upgraded to PHP 5 it doesn't work, saying that the functions xmlrpc_encode and xmlrpc_decode cannot be redeclared.

I understand this may now be built into the xmlrpc extension in version 5 but I wouldn't know how to go about fixing the script, I didn't write it it was from my merchant provider.

Maybe it would be easier to write a new class?

I can't seem to find any help online about this.

[edited by: coopster at 5:09 pm (utc) on Feb. 14, 2009]
[edit reason] Charter [webmasterworld.com] [/edit]

coopster

5:25 pm on Feb 14, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The code dump did not include either of those functions but yes, you are correct that your application is attempting to redefine/redeclare those functions. The extension has been bundled into PHP as of 4.1.0 but it is not enabled by default.

The quickest recovery for you is to talk to your merchant provider. There is a high degree of likeliness you are not the first to encounter this issue and they may have resolution for you.

optik

7:55 pm on Feb 14, 2009 (gmt 0)

10+ Year Member



unfortunately there response was to "learn PHP", unfortunately there is very little documentation regarding the PHP 5 version of XML-RPC.

I may try using SOAP instead as there seems to be more online help.