خیلی وقته درگیر این مشکلم اما تا تاپیک زدم حل شد قضیه دکتر و بیماره
ممنون عزیز مشکلم رفع شد.
کد رو به این صورت تغییر دادم :
کد HTML:
$myFile = "test.jpg";
$fh = fopen($myFile, 'r');
$fs = filesize($myFile);
$theData = file_get_contents($Response['Poster']);
fclose($fh);
$client = new IXR_Client('http://'.$AddressSite.'/xmlrpc.php');
$username = "admin";
$password = "123456789";
$client->debug = false;
$params = array('name' => ''.$zaminedelkhahe1.' - '.$zaminedelkhahe2.'.jpg', 'type' => 'image/jpg', 'bits' => new IXR_Base64($theData), 'overwrite' => true);
$res = $client->query('wp.uploadFile',1, $username, $password, $params);
$clientResponse = $client->getResponse();
$thumbnail_image = $clientResponse['url'];
$thumbnail_id = $clientResponse['id']; //This thumbnail id is provided in post content array
$client->debug = true; //Set it to false in Production Environment
فقط الان یه wpid توی نام فایلا اضافه میزنه که نفهمیدم برای چیه!!
راهی برای رفع این هست که فقط زمینه دلخواها رو بذاره توی نام فایل و دیگه wpid رو نزنه؟؟