hocam bunu yaptım
<?
$username = "************";
$password = "************";
$paypal = curl_init();
curl_setopt($paypal,CURLOPT_URL,"www.paypal.com/tr");
curl_setopt($paypal,CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($paypal,CURLOPT_RETURNTRANSFER,1);
curl_setopt($paypal,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($paypal,CURLOPT_COOKIEJAR,dirname(__FILE__)."/coki.txt");
curl_setopt($paypal,CURLOPT_COOKIEFILE,dirname(__FILE__)."/coki.txt");
curl_setopt($paypal,CURLOPT_POST,1);
$exe = curl_exec($paypal);
preg_match('/<form method="post" name="login_form" action="(.*?)">/',$exe,$site);
$url = $site[1];
curl_setopt($paypal,CURLOPT_URL,$url);
curl_setopt($paypal,CURLOPT_POSTFIELDS,'login_email='.$username.'&login_password='.$password.'&target_page=0&submit.x=Oturum+A%C3%A7&form_charset=UTF-8&browser_name=Firefox&browser_version=3.6&operating_system=Windows');
$exe = curl_exec($paypal);
preg_match("/Â <strong>(.*?)<\/strong>/",$exe,$baki);
echo $baki[1];
?>
ama bir kere çalıştırdıktan sonra şu kısmı sil
preg_match('/<form method="post" name="login_form" action="(.*?)">/',$exe,$site);
$url = $site[1];
curl_setopt($paypal,CURLOPT_URL,$url);
curl_setopt($paypal,CURLOPT_POSTFIELDS,'login_email='.$username.'&login_password='.$password.'&target_page=0&submit.x=Oturum+A%C3%A7&form_charset=UTF-8&browser_name=Firefox&browser_version=3.6&operating_system=Windows');
$exe = curl_exec($paypal);kontrolu şöyle yap eger coki.txt varsa bu çalışssın yoksa çalışmasın gibi
kusura bakma işyerinde ancak bu kadar oluyor
ekran görüntüsü