Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F15613335
debug.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
967 B
Referenced Files
None
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
Wed, Nov 25, 21:10 (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24130
Default Alt Text
debug.php (967 B)
Attached To
Mode
rZEDHG ZedLegacy
Attached
Detach File
Event Timeline
Log In to Comment