Page MenuHomeCode

No OneTemporary

diff --git a/apps/HelloWorldWebService.php b/apps/HelloWorldWebService.php
new file mode 100644
--- /dev/null
+++ b/apps/HelloWorldWebService.php
@@ -0,0 +1,4 @@
+<?php
+ $client = new SoapClient("http://localhost:49319/Service1.asmx?WSDL");
+ echo $client->HelloWorld()->HelloWorldResult
+?>
\ No newline at end of file
diff --git a/apps/pazaak/debug.php b/apps/pazaak/debug.php
new file mode 100644
--- /dev/null
+++ b/apps/pazaak/debug.php
@@ -0,0 +1,37 @@
+<?php
+ function dprint_r ($var) {
+ echo '<div class="debugCode"><pre>';
+ print_r($var);
+ echo '</pre></div>';
+ }
+
+ $client = new SoapClient('http://localhost:49319/PazaakService.asmx?WSDL');
+ $game = $client->QuickQuickStart()->QuickQuickStartResult;
+
+ echo "<h1>Game $game->GUID</h1>";
+ echo "<h2>Table</h2>";
+ $cards = $game->PlayerTable->string;
+ if (is_array($cards)) {
+ echo "<table><tr>";
+ foreach ($cards as $card)
+ echo "<td>$card</td>";
+ echo "</tr></table>";
+ } else {
+ echo "<p>$cards</p>";
+ }
+ echo "<h2>Your hand</h2>";
+
+ $cards = $game->PlayerHand->string;
+ if (count($cards)) {
+ echo "<table><tr>";
+ foreach ($cards as $card)
+ echo "<td>$card</td>";
+ echo "</tr></table>";
+ } else {
+ echo "<p>-</p>";
+ }
+
+ echo "<h2>Debug</h2>";
+ dprint_r($game);
+
+?>
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 23, 11:18 (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
20894
Default Alt Text
(1 KB)

Event Timeline