Skip to content

Instantly share code, notes, and snippets.

@MiLk
Created October 26, 2012 15:36
Show Gist options
  • Select an option

  • Save MiLk/3959474 to your computer and use it in GitHub Desktop.

Select an option

Save MiLk/3959474 to your computer and use it in GitHub Desktop.
try {
$soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.26.wsdl");
//login
$session = $soap->login("xxxxxx-ovh", "******","fr", false);
echo "login successfull\n";
//zoneEntryAddCustom
$soap->zoneEntryAddCustom($session, "hostyourcreeper.net", "SRV", "CUSTOM", "", "_minecraft._tcp.server010.hyc002", "", "10 10 25510 server010.hyc002.hostyourcreeper.net.", "");
echo "zoneEntryAddCustom successfull\n";
//logout
$soap->logout($session);
echo "logout successfull\n";
} catch(SoapFault $fault) {
echo $fault;
}
@MiLk

MiLk commented Oct 26, 2012

Copy link
Copy Markdown
Author

SoapFault exception: [soap:510] Erreur de mise à jour, la nouvelle configuration ne fonctionnera pas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment