You appear to be a bot. Output may be restricted
Description
Check if this is a valid domainNote: This function can be very slow. Up to 10 seconds We avoid doing it at all costs if there is a suitable alternative. Could it actually be quicker to do a get request?
Usage
$string = bw_check_domain( $domain );
Parameters
- $domain
- ( string ) required – a potential domain name, could be null
Returns
string domain if valid else nullTO DO
See how the the broken link checker works?Source
File name: oik/shortcodes/oik-link.phpLines:
1 to 12 of 12
function bw_check_domain( $domain ) { // $recordexists = dns_check_record( $domain, "ANY"); bw_trace2(); if ( $domain ) { $recordexists = checkdnsrr( $domain, "ANY" ); if ( !$recordexists ) { $domain = false; } } bw_trace2( $recordexists, "$domain: $recordexists" ); return( $domain ); }View on GitHub View on Trac