set(array( 'open_length_check' => true, 'package_max_length' => 81920, 'package_length_type' => 'N', 'package_length_offset' => 9, 'package_body_offset' => 13 )); if (!$client->connect($host, $port, 0.5)) { return false; } $client->send($pack); $pack = $client->recv(); $ret = unpack('Ctype/Ntime/Nserid/Nlength/a*data', $pack); return $ret['data']; } $ret = remoteCall("127.0.0.1", "5188", "sasa"); echo $ret; ?>