Welcome Guest, Not a member yet? Register   Sign In
JSON-RPC Library
#8

[eluser]kerpunk[/eluser]
Hey Nick,

That's awesome, thanks for the quick response!

Would you be able to post a little demo of how to handle the parameters sent from the client to the server?

I have the code below in the client, but can't figure what to put in the server code to access these parameters.

Code:
$client->request(array('message' => 'hello world'));

Also, I edited line 466 in jsonrpc.php from:

Code:
echo $response->create_server_response()

to:

Code:
$e = new JSON_RPC_Parser();
echo $e->encode($response->create_server_response());

I'm not sure if i've misunderstood something here, but this returns the array to the client already in json format, rather than using a print_r to access the array / object.

Again, thanks for the awesome library :-)


Messages In This Thread
JSON-RPC Library - by El Forum - 12-05-2008, 10:55 AM
JSON-RPC Library - by El Forum - 12-05-2008, 10:56 AM
JSON-RPC Library - by El Forum - 01-14-2009, 12:18 AM
JSON-RPC Library - by El Forum - 08-12-2009, 05:38 PM
JSON-RPC Library - by El Forum - 08-12-2009, 08:13 PM
JSON-RPC Library - by El Forum - 08-12-2009, 08:38 PM
JSON-RPC Library - by El Forum - 08-13-2009, 05:11 AM
JSON-RPC Library - by El Forum - 08-15-2009, 07:25 AM
JSON-RPC Library - by El Forum - 11-16-2009, 10:05 PM
JSON-RPC Library - by El Forum - 02-25-2010, 11:52 AM
JSON-RPC Library - by El Forum - 05-28-2010, 03:37 AM
JSON-RPC Library - by El Forum - 01-20-2011, 08:50 AM
JSON-RPC Library - by El Forum - 03-03-2011, 06:40 PM
JSON-RPC Library - by El Forum - 05-26-2011, 06:17 AM
JSON-RPC Library - by El Forum - 05-26-2011, 06:57 AM
JSON-RPC Library - by El Forum - 05-26-2011, 07:00 AM
JSON-RPC Library - by El Forum - 05-26-2011, 07:25 AM
JSON-RPC Library - by El Forum - 08-16-2011, 03:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB