Apmēram tā:
<?php
$file = '0000000000000.txt';
$submit_url = 'http://dfgfdggf.com/ffdgfdgf.php?dir=hvz';
$formvars = array(
'poga'=> 'Augshuplaadeet',
'file' => '@'.realpath($file)
);
$ch = curl_init($submit_url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Hakorz');
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_REFERER, 'http://blackhalt.wordpress.com/');
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $formvars);
echo $pnp_result_page = curl_exec($ch);
curl_close ($ch);
?>