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);

Yazar : meteryus Tarih : 2006-07-24 03:37:44 Yorum : yorum yok Kategori :

Yorum yapmak istermisiniz ?
Web


Copyright © Meteryus.com 2008. All Rights Reserved.
1 2 3 4