note 119552 added to class.yar-client
| From: | porschegt23 at foxmail dot com | Date: | Tue, 05 Jul 2016 11:07:05 +0000 |
| Subject: | note 119552 added to class.yar-client | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205880@lists.php.net to get a copy of this message | ||
A simple example on here:
server.php
<?php
class API {
public function api($parameter = "", $option = "foo") {
return $this->client_can_not_see($parameter);
}
public function doAdd($a = 0, $b = 0) {
return $a+$b;
}
protected function client_can_not_see( $name ) {
return "ä½ å¥½$name~";
}
}
$service = new Yar_Server ( new API () );
$service->handle ();
?>
client.php
<?php
$client = new Yar_Client("http://host/server.php");
$result = $client->api("parameter");
echo $result.'<hr>';
echo $client->doAdd(10, 20);
?>
----
Server IP: 72.52.91.14
Probable Submitter: 61.135.152.203
----
Manual Page -- http://php.net/manual/en/class.yar-client.php
Edit -- https://master.php.net/note/edit/119552
Del: integrated -- https://master.php.net/note/delete/119552/integrated
Del: useless -- https://master.php.net/note/delete/119552/useless
Del: bad code -- https://master.php.net/note/delete/119552/bad+code
Del: spam -- https://master.php.net/note/delete/119552/spam
Del: non-english -- https://master.php.net/note/delete/119552/non-english
Del: in docs -- https://master.php.net/note/delete/119552/in+docs
Del: other reasons-- https://master.php.net/note/delete/119552
Reject -- https://master.php.net/note/reject/119552
Search -- https://master.php.net/manage/user-notes.php