Cache.lt Torrent Cache

    $post_data = array(
        "upload" => true, // Don't change
        "torrent" => "@/path/to/torrent/dexter.s03.e07.torrent"
    );

    $ch = curl_init("http://dtiventures.com/api/upload.php");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
    $result = curl_exec($ch);
    curl_close($ch);
    $json = json_decode($result);

    if (!$json->error){
        echo $json->message;
        echo $json->url;
    }else if($json->error){
        echo $json->message;
    }
{"error":false,"message":"The torrent has been successfully uploaded","url":"http:\/\/dtiventures.com\/torrent\/7ED0137D09E1FE26B39F5E650B2F9DEE08F3E2F4.torrent","magnet":"magnet:?xt=urn:btih:7ED0137D09E1FE26B39F5E650B2F9DEE08F3E2F4&tr=udp:\/\/tracker.openbittorrent.com:80\/announce&tr=udp:\/\/tracker.publicbt.com:80&tr=udp:\/\/tracker.ccc.de:80&tr=udp:\/\/tracker.istole.it:80"}