"m-jay, post: 67216, member: 20288":
$post = array($type=>"@".$file);
This line is php5.5 @ is depicted you can try some thing like this
$post = array($type=>curl_file_create(.$file)
Still not working.
Try adding
function itorrents_upload($type,$file){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://itorrents.org/autoupload.php");
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$post = array($type=>curl_file_create($file));
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($curl);
curl_close($curl);
#echo $response;
}
itorrents_upload('torrent',"$torrent_dir/$id.torrent");
After rename() part into torrents-upload.php
Then create new .torrent file and upload it.
Test if it exists on ittorrents.org/torrent/YOUR_HASH_UPPERCASE.torrent