01 May 2013 - After the site upgrade, all passwords were reset and you will need to ask the site for a login reset on your first connection.

Accessing geo-nick with Pear XML-RPC

If your version does not include the standard xml-rpc extension, you can also use the the Pear implementation of XML-RPC, as in this example.

At the end of this example, data is available in $data (near print_r) in an easily parsable array. You may need to build a loop reading ($resp->value()) while some data is available.

<?php
error_reporting
(E_ALL);

require_once
'XML/RPC.php';

/**
* Prepare the request data
*/
$host    = 'www.php-gtk.eu';
$port    = 80;
$backend = '/xmlrpc.php';

/**
* XML-RPC API description here :
* http://www.php-gtk.eu/site/geo-nick
*/
$params = array (
 
# start nicks in case of multiple queries. can be a nick or a letter.
 
new XML_RPC_Value( $start_nicks='''string'),

 
# max nicks to return
 
new XML_RPC_Value( $max_nicks=50,    'int')
);
$msg = new XML_RPC_Message('gtkphpnet.geo_nick', $params);

$cli = new XML_RPC_Client($backend, $host);

$resp = $cli->send($msg);
if (!
$resp) {
    echo
'Communication error: ' . $cli->errstr;
    exit;
}

if (!
$resp->faultCode()) {
   
$val = $resp->value();
   
$data = XML_RPC_decode($val);
   
print_r($data);
} else {
 
/**
   * Display problems that have been gracefully caught and
   * reported by the xmlrpc.php script
   */
 
echo 'Fault Code: ' . $resp->faultCode() . "\n";
  echo
'Fault Reason: ' . $resp->faultString() . "\n";
}
?>

Maps

Watch a mashup of PHP-GTK developers using Google Maps.

A map of brazilian PHP-GTK developers already exists on the brazilian community site. Maybe we can hope to see some integration in the future ?