<?php
$start=date("Y/m/d H:i:s");
print("*** START ***n");
$s = 1;
$f = 200;
$fl = strlen($f);
$m = str_repeat('0', $fl);
for ($a = $s; $a <= $f; $a++) {
$b = strlen($a);
$c = substr_replace($m, $a, -$b);
exec("sh /script/add --class=domain --name=dom{$c}.com --v-dnstemplate_name=default.dnst");
print("- add dom{$c}.comn");
}
print("*** END ***n");
$end=date("Y/m/d H:i:s");
print("START: " . $start . " - END: " . $end . "n");
- Change - '$f = 200;' to '$f = 2000;'
- Change - '/add' to '/delete' and '- add' to '- delete' if want delete
- Remove ' --v-dnstemplate_name=default.dnst' if change 'add' to 'delete'
- Change 'default.dnst' to your own