<?php
error_reporting(E_ALL);
include 'inc/xmlrpc.php';
$client = new IXR_Client('http://localhost/kmp/admin/install/rpc.php');
$client->debug = true;
$params = array(
'product_key' => 'ABCD-EFGH-IJKL-MNOP',
'db_prefix' => 'kmp_',
'db_host' => 'localhost',
'db_login' => 'root',
'db_password' => '',
'db_name' => 'kmp',
'acc_login' => 'admin',
'acc_password' => '',
'acc_first_name' => 'John',
'acc_last_name' => 'Doe',
'acc_email' => 'john.doe@example.com',
'smtp_host' => 'mail',
'smtp_port' => '25'
);
if (!$client->query('install.setup', $params)) {
die('An error occurred - '.$client->getErrorCode().":".$client->getErrorMessage());
}
echo '<pre>';
print_r($client->getResponse());
echo '</pre>';
?>