The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: pasha | October 13, 2010 @ 6:04am
PHP Code
[
Download
]
<?php include_once("x/lib/xmlrpc.inc"); $GLOBALS['xmlrpc_defencoding'] = "UTF8"; $GLOBALS['xmlrpc_internalencoding'] = "UTF-8"; //���������� $client = new xmlrpc_client("/xmlrpc/", "api.sape.ru", 80); //$client->setdebug(2); //����� $login="blabla"; $password="blabla"; $msg = new xmlrpcmsg("sape.login", array( new xmlrpcval($login, "string"), new xmlrpcval($password, "string"), new xmlrpcval(true, "boolean") )); $resp=$client->send($msg); $ret = php_xmlrpc_decode($resp->value()); echo $ret; $msg2 = new xmlrpcmsg("sape.get_balance"); $resp2 = $client->send($msg2); $ret2 = php_xmlrpc_decode($resp2->value()); ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.52 / 8
42 Votes
http://codebin.yi.org/891
page generated in 0.01 seconds