Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F212014
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/apps/HelloWorldWebService.php b/apps/HelloWorldWebService.php
new file mode 100644
index 0000000..4782eec
--- /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
index 0000000..8a822b5
--- /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
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 25, 03:59 (2 h, 31 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21100
Default Alt Text
(1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment