JSONRPC implementation using PHP