Ok guys here is the thing, i am trying to make a script which would first login into the syt bitroad.net and then would give a link in a field for remote uploading
this is the script i have made but its not working... can anybody correct the script?
remote upload text box is in "files" tab after logging in
i have also cre8ed a fake id on tht site just for you guyz to see nd help
login: noobster
password: noob
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://bitroad.net');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"login=username&password=password");
$page = curl_exec($ch);
preg_match('/;(.*)\"/',$page,$matches);
curl_setopt($ch, CURLOPT_URL,'http://bitroad.net'.$matches[1]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"username=username&password=password&methodToCall=curl_exec($ch)");
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL,'http://bitroad.net/ftp/acc_file.php'.$matches[1]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'remote_file=$url');
$page = curl_exec($ch);
?>