Create FTP user

				
					StructOperationResponse WebHostingFTPUserCreate(string $IDsession, string $id, string $username, string $password, string $rootDir)
				
			

Create a FTP user.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • username string
    Name.
  • password string
    Password.
  • rootDir string
    Path of the user’s root directory starting from the root of the hosting.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingFTPUserCreate($idSession, "NW1024", "admin", "12abCD%@", "/files"); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}