![]() |
![]() |
<?php
// sub.txt dosyasinin icinden kelimeleri alip onlara
// subdomain acar. sub.txt dosyasinin chmod ayarlari
// 755 veya ustu olsun
$host = "domainadresim.com";
$cpaneluser = "cpanelkullaniciadi";
$cpanelpass = "cpanelsifrem";
$array = file("sub.txt");
for ($z=0; $z <= count($array); $z++) {
fopen ("http://$cpaneluser:$cpanelpass@$host:2082/frontend/x2/subdomain/doadddomain.html?domain=$array[$z]&rootdomain=$host" , "r");
}
?>
php manual' Alıntı:Note: Each line in the resulting array will include the line ending, so you still need to use rtrim() if you do not want the line ending present.