@121244 כתב בהורדת קובץ מהמערכת לשרת:
@MGM-IVR כבר מצאתי את זה אך אני לא הבנתי איפה אני מכניס כתובת מקור וכתובת יעד?
$url = $url.'UploadTextFile'; $data = array('token' => $token, 'what' => $file2, 'contents' => $newText); $options = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $result = json_decode(file_get_contents($url, false, $context),true);
זה קוד של העלאת טקסט, לא העלאת קובץ.