當前位置: 首頁>>代碼示例>>PHP>>正文


PHP jsonRPCClient::changeYourState方法代碼示例

本文整理匯總了PHP中jsonRPCClient::changeYourState方法的典型用法代碼示例。如果您正苦於以下問題:PHP jsonRPCClient::changeYourState方法的具體用法?PHP jsonRPCClient::changeYourState怎麽用?PHP jsonRPCClient::changeYourState使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在jsonRPCClient的用法示例。


在下文中一共展示了jsonRPCClient::changeYourState方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Format

$_PHP_SELF;
?>
" method="POST">
<b>Select the format you want to view the system uptime on</b><br>
  <input type="radio" name="name" value=" ">Normal format<br>
  <input type="radio" name="name" value="-s">MM:HH:SS format<br>
  <input type="radio" name="name" value="-p">Short Format<br>
    <input type="radio" name="name" value="find">Windows Format (Only on Windows Systems)<br>
<br><input type="Submit" /><br>
      </form>                                      
                   
   </body>

<?php 
require_once 'jsonRPCClient.php';
$myExample = new jsonRPCClient('http://127.0.0.1/dvws/vulnerabilities/cmdi/server.php');
// performs some basic operation
try {
    echo 'This application is using <i>' . $myExample->giveMeSomeData('name') . ' to execute commands:</i><br />' . "\n";
    $myExample->changeYourState('I am using this function from the network');
} catch (Exception $e) {
    echo nl2br($e->getMessage()) . '<br />' . "\n";
}
if (isset($_POST["name"])) {
    echo '<br /><b>The current system uptime is</b><br />' . "\n";
    try {
        echo $myExample->getsystemstatus($_POST["name"]);
    } catch (Exception $e) {
        echo nl2br($e->getMessage());
    }
}
開發者ID:johnjohnsp1,項目名稱:dvws,代碼行數:31,代碼來源:client.php


注:本文中的jsonRPCClient::changeYourState方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。