@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php require_once __DIR__ . "/client/_prepend.php"; ?><html lang="en"> |
|
| 1 | +<?php require_once __DIR__."/client/_prepend.php"; ?><html lang="en"> |
|
| 2 | 2 | <head><title>xmlrpc</title></head> |
| 3 | 3 | <body> |
| 4 | 4 | <?php |
@@ -8,9 +8,9 @@ discard block |
||
| 8 | 8 | print "<h3>Testing value serialization</h3>\n"; |
| 9 | 9 | |
| 10 | 10 | $v = new PhpXmlRpc\Value(23, "int"); |
| 11 | -print "<PRE>" . htmlentities($v->serialize()) . "</PRE>"; |
|
| 11 | +print "<PRE>".htmlentities($v->serialize())."</PRE>"; |
|
| 12 | 12 | $v = new PhpXmlRpc\Value("What are you saying? >> << &&"); |
| 13 | -print "<PRE>" . htmlentities($v->serialize()) . "</PRE>"; |
|
| 13 | +print "<PRE>".htmlentities($v->serialize())."</PRE>"; |
|
| 14 | 14 | |
| 15 | 15 | $v = new PhpXmlRpc\Value( |
| 16 | 16 | array( |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | "array" |
| 22 | 22 | ); |
| 23 | 23 | |
| 24 | -print "<PRE>" . htmlentities($v->serialize()) . "</PRE>"; |
|
| 24 | +print "<PRE>".htmlentities($v->serialize())."</PRE>"; |
|
| 25 | 25 | |
| 26 | 26 | $v = new PhpXmlRpc\Value( |
| 27 | 27 | array( |
@@ -49,11 +49,11 @@ discard block |
||
| 49 | 49 | "struct" |
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | -print "<PRE>" . htmlentities($v->serialize()) . "</PRE>"; |
|
| 52 | +print "<PRE>".htmlentities($v->serialize())."</PRE>"; |
|
| 53 | 53 | |
| 54 | 54 | $w = new PhpXmlRpc\Value(array($v, new PhpXmlRpc\Value("That was the struct!")), "array"); |
| 55 | 55 | |
| 56 | -print "<PRE>" . htmlentities($w->serialize()) . "</PRE>"; |
|
| 56 | +print "<PRE>".htmlentities($w->serialize())."</PRE>"; |
|
| 57 | 57 | |
| 58 | 58 | $w = new PhpXmlRpc\Value("Mary had a little lamb, |
| 59 | 59 | Whose fleece was white as snow, |
@@ -65,29 +65,29 @@ discard block |
||
| 65 | 65 | Ten thousand volts went down its back |
| 66 | 66 | And turned it into nylon", "base64" |
| 67 | 67 | ); |
| 68 | -print "<PRE>" . htmlentities($w->serialize()) . "</PRE>"; |
|
| 69 | -print "<PRE>Value of base64 string is: '" . $w->scalarval() . "'</PRE>"; |
|
| 68 | +print "<PRE>".htmlentities($w->serialize())."</PRE>"; |
|
| 69 | +print "<PRE>Value of base64 string is: '".$w->scalarval()."'</PRE>"; |
|
| 70 | 70 | |
| 71 | 71 | $req->method(''); |
| 72 | 72 | $req->addParam(new PhpXmlRpc\Value("41", "int")); |
| 73 | 73 | |
| 74 | 74 | print "<h3>Testing request serialization</h3>\n"; |
| 75 | 75 | $op = $req->serialize(); |
| 76 | -print "<PRE>" . htmlentities($op) . "</PRE>"; |
|
| 76 | +print "<PRE>".htmlentities($op)."</PRE>"; |
|
| 77 | 77 | |
| 78 | 78 | print "<h3>Testing ISO date format</h3><pre>\n"; |
| 79 | 79 | |
| 80 | 80 | $t = time(); |
| 81 | 81 | $date = PhpXmlRpc\Helper\Date::iso8601Encode($t); |
| 82 | 82 | print "Now is $t --> $date\n"; |
| 83 | -print "Or in UTC, that is " . PhpXmlRpc\Helper\Date::iso8601Encode($t, 1) . "\n"; |
|
| 83 | +print "Or in UTC, that is ".PhpXmlRpc\Helper\Date::iso8601Encode($t, 1)."\n"; |
|
| 84 | 84 | $tb = PhpXmlRpc\Helper\Date::iso8601Decode($date); |
| 85 | 85 | print "That is to say $date --> $tb\n"; |
| 86 | -print "Which comes out at " . PhpXmlRpc\Helper\Date::iso8601Encode($tb) . "\n"; |
|
| 87 | -print "Which was the time in UTC at " . PhpXmlRpc\Helper\Date::iso8601Encode($tb, 1) . "\n"; |
|
| 86 | +print "Which comes out at ".PhpXmlRpc\Helper\Date::iso8601Encode($tb)."\n"; |
|
| 87 | +print "Which was the time in UTC at ".PhpXmlRpc\Helper\Date::iso8601Encode($tb, 1)."\n"; |
|
| 88 | 88 | |
| 89 | 89 | print "</pre>\n"; |
| 90 | 90 | |
| 91 | 91 | ?> |
| 92 | 92 | </body> |
| 93 | -</html><?php require_once __DIR__ . "/client/_append.php"; ?> |
|
| 93 | +</html><?php require_once __DIR__."/client/_append.php"; ?> |
|
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | // gmstrftime doesn't exist in some versions of PHP |
| 30 | 30 | $t = gmstrftime("%Y%m%dT%H:%M:%S", $timet); |
| 31 | 31 | } else { |
| 32 | - $t = strftime("%Y%m%dT%H:%M:%S", $timet - date('Z')); |
|
| 32 | + $t = strftime("%Y%m%dT%H:%M:%S", $timet-date('Z')); |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |