0
나는 내 고객 cpanel에 로그인하고 파일 또는 폴더를 만드는 스크립트를 만들려고 노력 해왔다.이 코드는 지금까지 도움을 받고 싶습니다. xml API를 사용하여 고객 계정에 액세스하고 있습니다.php - Cpanel cpanel에 PHP 코드가있는 새 폴더를 만듭니다.
<?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')
);
내가 혼란 스러워요. 당신이 습득하려는 것을 더 명확하게 말할 수 있습니까? – Martin
왜'unlink'의 배열 명령어를 참조하고 있는데,'create files or folders'와 상관 관계가 없습니다. – Martin
그리고 CPanel 사용자 이름과 비밀번호 POST를 왜 사용하고 있습니까? – Martin