
<?php $cookie_file = 'cookie.txt'; $c = curl_init('http://menele.net'); curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_file); curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($c, CURLOPT_URL, 'http://menele.net'); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c, CURLOPT_POSTFIELDS, 'username=xxx&password=xxx'); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); $s = curl_exec($c); curl_close($c); ?>
echo $s dałem aby sprawdzić czy kod działa

dodam, że w cURL jestem nowy.