Tengo el código hecho, y no me da ningún error:
Código PHP:
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 240);
curl_setopt($ch, CURLOPT_URL, "http://www.imageshack.us/upload_api.php");
$post = array(
"fileupload" =>'@'.$_FILES['fileupload']['tmp_name'].'; Content-type: '.$_FILES['fileupload']['type'],
"optsize" =>"640x480",
"rembar" =>"yes",
"key" =>"1789EUXYd29ced948fd6c02c07d84ea5b638d8a2",
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$return = curl_exec($ch);
curl_close($ch);
echo $return;
Gracias por adelantado