• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

PHP - Plesk 12.5.x API no longer works on my site

DerJustin

New Pleskian
Hello community,

a few weeks ago I succesfully create customer via PHP, but now will the API no longer works on my site.
The result is bool(false).

I hope you can help me and sorry for my bad english.

<?
#Plesk Country [start]
if($country == "Deutschland"){
$plesk_country = "DE";
}elseif($country == "Frankreich"){
$plesk_country = "FR";
}elseif($country == "Italien"){
$plesk_country = "IT";
}elseif($country == "Österreich"){
$plesk_country = "AT";
}elseif($country == "Schweiz"){
$plesk_country = "CH";
}elseif($country == "Tschechien"){
$plesk_country = "CZ";
}
#Plesk Country [end]

$params = array(
'contact_name' => $firstname.' '.$lastname,
'username' => strtolower($username),
'password' => $_SESSION['ori_password'],
'phone' => $phone_number,
'email' => $email,
'address' => $street.' '.$house_number,
'city' => $place,
'post_code' => $zip,
'country' => $plesk_country
);

$request = new \pmill\Plesk\CreateClient($config, $params);
$info = $request->process();
exit(var_dump($info));
?>

Sincerly,
Justin
 
Back
Top