<?php
$hotfile_user = "hotfileusername";
$hotfile_pass = "hotfilesifre";
$ch = curl_init();
curl_setopt($ch , CURLOPT_TIMEOUT, 180);
curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE);
curl_setopt($ch , CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2) Gecko/20100115 Firefox/3.6');
curl_setopt($ch , CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch , CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch , CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch , CURLOPT_URL, 'http://hotfile.com/login.php');
curl_setopt($ch , CURLOPT_POST , TRUE);
curl_setopt($ch , CURLOPT_POSTFIELDS, 'user='.$hotfile_user.'&pass='.$hotfile_pass);
echo $exec = curl_exec($ch);
?>
Yukardaki kod ile hotfile ye login olucam. Ama maalesef çalıştırdığımda kodu
Notice: Undefined index: returnto in /hotfile/www/root/login.php on line 21
Notice: Undefined index: returnto in /hotfile/www/root/login.php on line 22
Notice: Undefined index: returnto in /hotfile/www/root/login.php on line 23
böyle hata veriyor. acaba nedeni nedir ?