changeYourState() public method

Since it is a public method, it WILL be served as RPC. If you want to plug out this method, extend this class with a dummy method. This method return a trivial value and can be implemented as a RPC notification.
public changeYourState ( string $state ) : boolean
$state string
return boolean
<?php

require_once 'includes/example.php';
$myExample = new example();
// performs some basic operation
echo '<b>Attempt to perform basic operations</b><br />' . "\n";
try {
    echo 'Your name is <i>' . $myExample->giveMeSomeData('name') . '</i><br />' . "\n";
    $myExample->changeYourState('I am using this function from the local environement');
    echo 'Your status request has been accepted<br />' . "\n";
} catch (Exception $e) {
    echo nl2br($e->getMessage()) . '<br />' . "\n";
}
// performs some strategic operation, locally allowed
echo '<br /><b>Attempt to store strategic data</b><br />' . "\n";
try {
    $myExample->writeSomething('Strategic string!');
    echo 'Strategic data succefully stored';
} catch (Exception $e) {
    echo nl2br($e->getMessage());
}