Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391039
debug.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
967 B
Subscribers
None
debug.php
View Options
<?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
);
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:21 (10 h, 13 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24130
Default Alt Text
debug.php (967 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment