Script php pour creer un sous domaine
... / Script php pour creer un ...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Script php pour creer un sous domaine

by
HaythemS
Created on 2017-03-03 15:25:05 (edited on 2024-09-04 12:49:31) in Domaines

bonjour,
je suis a la recherche d’un code a implémenter dans l’un des page de mon site web affin de créer un sous domaine.
j’ai essaye ce code mais pas de résultat :

try {
$soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.63.wsdl");

//login
$session = $soap->login("xxxxxx-ovh", "******","fr", false);
echo "login successfull\n";

//subDomainAdd
$soap->subDomainAdd($session, "elvitrina.com", "nouveau", "./", "tunisie");
echo "subDomainAdd successfull\n";

//logout
$soap->logout($session);
echo "logout successfull\n";

} catch(SoapFault $fault) {
echo $fault;
}

?>


1 Reply ( Latest reply on 2018-10-31 14:28:22 by
HaythemS
)

Bonjour,

Je pense qu'il faut utiliser l'APIv6 vu que la SOAPI est en cours d'extinction.


Cordialement, janus57


l'APIv6


?? comment faire exactement?

Replies are currently disabled for this question.