-<html>
+<?php require_once __DIR__ . "/client/_prepend.php"; ?><html lang="en">
<head><title>xmlrpc</title></head>
<body>
<?php
-include_once __DIR__ . "/../vendor/autoload.php";
-
$req = new PhpXmlRpc\Request('examples.getStateName');
print "<h3>Testing value serialization</h3>\n";
$v = new PhpXmlRpc\Value("What are you saying? >> << &&");
print "<PRE>" . htmlentities($v->serialize()) . "</PRE>";
-$v = new PhpXmlRpc\Value(array(
- new PhpXmlRpc\Value("ABCDEFHIJ"),
- new PhpXmlRpc\Value(1234, 'int'),
- new PhpXmlRpc\Value(1, 'boolean'),),
+$v = new PhpXmlRpc\Value(
+ array(
+ new PhpXmlRpc\Value("ABCDEFHIJ"),
+ new PhpXmlRpc\Value(1234, 'int'),
+ new PhpXmlRpc\Value(1, 'boolean'),
+ ),
"array"
);
$tb = PhpXmlRpc\Helper\Date::iso8601Decode($date);
print "That is to say $date --> $tb\n";
print "Which comes out at " . PhpXmlRpc\Helper\Date::iso8601Encode($tb) . "\n";
-print "Which was the time in UTC at " . PhpXmlRpc\Helper\Date::iso8601Encode($date, 1) . "\n";
+print "Which was the time in UTC at " . PhpXmlRpc\Helper\Date::iso8601Encode($tb, 1) . "\n";
print "</pre>\n";
?>
</body>
-</html>
+</html><?php require_once __DIR__ . "/client/_append.php"; ?>