Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F210913
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
--- /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
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 16, 02:48 (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
20894
Default Alt Text
(1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment