This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function recursive_delete($dir) { | |
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir), RecursiveIteratorIterator::CHILD_FIRST); | |
foreach ($iterator as $file) { | |
$path = $file->__toString(); | |
if($file->isDir()) { | |
rmdir($path); | |
} else { | |
unlink($path); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Multi-Region DNS NameServer Propogation Check | |
# | |
# Uses the dns-lg.com API to retrieve the NS records for a zone (domain name) | |
# at 19 (more or less) different locations globally. Use this to monitor the | |
# propogation of nameserver changes at your registrar. | |
# | |
# Note: There is no such thing as a guarantee when it comes to whether your | |
# new nameservers have propogated fully or not. Rule of thumb is three days | |
# but often it is much faster and this check can help you weigh the risks. |
NewerOlder