Php İle Cpanelden Bandwidth Kontrol Etmek

Tabut

Bedel.
Platin Üye
Katılım
7 Mar 2018
Mesajlar
719
Beğeniler
16
Yaş
27
PHP:
<?php  
/*############################  
php ile cpanelden bandwidth kontrol  
xxxxxx <xxxxxx>  
yardım : xxxxxx 
mysql/cpanel-bandwidth-kontrol.html  
############################*/  

$kullaniciadi = "kullaniciadi"; // cpanel kullanıdı adı  
$sifre = "sifre"; // cpanel sifreniz  
$domain = "domain"; // cpanel domain adı  
$theme = "x"; // cpanel theme  


ini_set("display_errors", "0");  
$file =  file_get_contents("http://$kullaniciadi:$sifre@$domain:2082/frontend/$theme/index.html")  or die("<b>critical error, ayarları kontrol ediniz</b>");  
$string1 = strpos($file, "bandwidth (this month)");  
$file = substr($file,$string1);  
$string2 = strpos($file, "megabytes");  
$length = strlen($file);  
$take =  $length - $string2;  
$finally = substr($file,0,-$take);  
$number = explode("<td class=\"index2\">", $finally);  
$number = explode(" ",$number[1]);  
$bandwidth = $number[0];  

echo $bandwidth; 

?>
 

Şu anda bu konu'yu okuyan kullanıcılar

Benzer konular

Üst