PEAR Manual
Prev |  | Next

# PEAR_Remote::call()

PEAR_Remote::call() -- Execute a server function

## Synopsis

    require_once 'PEAR/Remote.php';

``mixed PEAR_Remote::call` (string $method [, mixed $args,...])`

## Description

Sends a remote procedure call to a package server and returns the result.

## Parameter

string `$method`

  Name of the server method

mixed `$args,...`

  server method specific parameters

## Return value

`mixed` - result of the executed server method

## Throws

Table 27-1. Possible PEAR_Error values

Error code | Error value | Meaning | Solution
--- | --- | --- | ---
| "" |  |

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_Remote::PEAR_Remote() | Up | PEAR_REST