Re: new to phpxmlrpc
Sam <[email protected]> Wed, 17 Dec 2003 15:28:34 +0100
| Newsgroups | gmane.comp.php.xml-rpc |
|---|---|
| Message-ID | <[email protected]> |
Hi! I tried the way you said (include_once), but I get the same error on the same line.... Thanks Sam At 13.47 17/12/03, you wrote: >Sam, > >It sounds like the include file is trying to be loaded twice. >Hence, trying to redeclare the already declared function. > >Try using include_once when you include the xmlrpc files, rather than >just a regular include. This may hopefully help to fix your problem. > >Hope it helps > >Regards, >Jason > > > > ______________________________________________________________________ > > From: Sam <[email protected]> > > To: [email protected] > > Subject: [phpxmlrpc] new to phpxmlrpc > > Date: 17 Dec 2003 09:26:17 +0100 > > > > Hi everybody, > > I am new to phpxmlrpc. I downloaded the xmlrpc class and tried to use > > it. > > After lots of tries, I keep on getting this error: > > Fatal error: Cannot redeclare xmlrpc_decode() in /.../xmlrpc.inc on > > line 1380 > > I can get out of this, can anyone help me? > > I am working with a very simple script like this: > > > > $client=new xmlrpc_client("path", "server", 80); > > $par1=new xmlrpcval(array( > > "first_param" => new xmlrpcval("first_value", "string"), > > "second_param" => new xmlrpcval("second_value", "string")), "struct"); > > $par=xmlrpc_encode($par1); > > $f=new xmlrpcmsg("method",$par); > > $r=$client->send($f); > > > > Thank you in advance > > Sam