Php de Curl Kütüphanesi ile cpanel e login olmak ,
Belki birilerine lazım olur , nitekim bana oldu :)
$u="cPanel Kullanıcı Adı";
$p="cPanel Şifre";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, 1);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_URL, "http://www.siteadresi.com:2082/frontend/x/mail/addpop2.html"); // Adrese dikkat
curl_setopt($ch, CURLOPT_USERPWD,$u.":".$p);
curl_setopt($ch, CURLOPT_COOKIEJAR, "my_cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "my_cookies.txt");
$data = curl_exec($ch);
