I have been trying to create a script to login to my clients cpanel and create files or folders this my code so far i would like to get some help please. I am using xml api to access my clients accounts.
<?php
include("xmlapi/xmlapi.php");
$ip = "127.0.0.1";
$auth_user = $_POST['txtcpusername'];
$auth_pass = $_POST['txtcppassword'];
//this is the part I am not sure about
$xmlapi->api2_query($username, "Fileman", "addf",
array("op"=>"unlink", "sourcefiles"=>''/public_html/subdomain.domain')
);