You are using GET method to upload the file ... but file always gets uploaded using POST..
For that you have to place @
in front of the file name you want to send as post.
sending @
before the file path makes sure that cURL sends the file as part of a “multipart/form-data” post
Try this
<?php
$ch = curl_init("http://imagezilla.net/api.php?apikey=''&testmode=1");
$post = array(
"file"=>"@C:\Anti-Backlash-Nut.jpg",
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo $output;
?>