Hi all,
Code:
function curl_vb($url,$data,$cookie,$method='POST')
{
$ch = curl_init();
// set the target url
curl_setopt($ch, CURLOPT_URL,$url);
// howmany parameter to post
curl_setopt($ch, CURLOPT_POST, count($_POST));
// the parameter 'username' with its value 'johndoe'
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
//cookie?!?!
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
$result= curl_exec ($ch);
curl_close ($ch);
print $result;
}
i'm using this script to try to login remotely to my vb. Login runs perfectly but the user logged on my forum has the same ip of the server. any idea?