[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Demexp-dev] New code for cookie
From: |
Diogene Laerce |
Subject: |
[Demexp-dev] New code for cookie |
Date: |
Sat, 22 Sep 2007 15:31:28 +0700 |
Hi David
I think I did some progress but I still not find any demexp cookie on my
machine ??
Heres the new code :
______________________________________________________________
<?php
include 'xmlrpc.inc';
// Object to represent the server
$server = new
xmlrpc_client("http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo");
// mode debug
$server->setDebug(1);
// Send a message to the server.
$login = new xmlrpcval("root", "string");
$passwd = new xmlrpcval("demexp", "string");
$message = new xmlrpcmsg("login", array($login, $passwd));
$result = $server->send($message);
// Process the response.
if (!$result)
{
print "<p>Could not connect to HTTP server.</p>";
}
elseif ($result->faultCode())
{
print "<p>XML-RPC Fault #" . $result->faultCode() . ": " .
$result->faultString();
}
else
{
$cookie = $result->value();
if(!empty($cookie))
{
$name=demexp_cookie;
$server->setCookie($name);
}
}
___________________________________________________________________
Still like to have your advice.. :)
Yours
Diogene
- [Demexp-dev] New code for cookie,
Diogene Laerce <=