Вроде все легко,
Код: Выделить всё
$file_to_upload = array('file[]'=>"@./file1",'file[]'=>"@./file2",'file[]'=>"@./file3");
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 'http://remote.server/get.php');
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $file_to_upload);
$result = curl_exec($ch);
Как реализовать?
Код: Выделить всё
$file_to_upload = array('file'=>"@./file1",'file'=>"@./file2",'file'=>"@./file3");