<?php
$user = "admin";
$postField = array();
$postFields['user'] = $user;
$postFields['upload_file'] = array(
'file[0]' => '@' . realpath('first-file.jpg'),
'file[1]' => '@' . realpath('second-file.jpg')
)
$headers = array("Content-Type" => "multipart/form-data");
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "http://serverdomain.com/upload/uploadMultipleFiles");
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl_handle, CURLOPT_POST, TRUE);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, TRUE);
$returned_data = curl_exec($curl_handle);
curl_close($curl_handle);
echo $returned_data ;