Forum Moderators: coopster
Warning: require(./lib/common.inc.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\zen\inc\config.php on line 14
Fatal error: require() [function.require]: Failed opening required './lib/common.inc.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\zen\inc\config.php on line 14
<?php
/**
This Example shows how to authenticate a user using XML-RPC.
Note that we are using the PEAR XML-RPC client and recommend others do as well.
**/
require_once 'XML/RPC2/Client.php';
require_once 'inc/config.php';
$client = XML_RPC2_Client::create($apiURL);
$token = $client->login($apiLogin, $apiPassword);
$contactLists = $client->listGet($token, "", 1, 100, "", "");
foreach($contactLists as $rec) {
echo $rec['sequence'] . "] List Name: " . $rec['listname'] . "(" . $rec['id'] . ")";
echo "\t Contacts:" . $rec['contactcount'] . "\t Created Date: " . $rec['createdDate'] ;
echo "\t Updated Date: " . $rec['modifiedDate'];
echo "<br />";
}
?>