pa ako si vec nasao curl, kako moze da bude nejasno :) Imas milione primera...
Code:
// init cURL session
$ch = curl_init ("http://www.example.com/nesto");
// otvori fajl za smestanje uzetih podataka
$fp = fopen ("fajl.txt", "w");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
// smesti podatke u POST array (predpostavka da se taj user/pass prenose preko POST-a)
$post_vars = "user=pera&pass=joca";
// prenesi POST curl-u
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vars);
if (!curl_exec ($ch))
echo "connection to remote server failed!";
curl_close ($ch);
fclose ($fp)
Jeff, one day you’ll understand that it’s harder to be kind than clever.