domain_check_response($domain)Checks to see if the webserver returns a valid response for a request to a domain.
$domain An array containing the record from the {domain} table
./domain.admin.inc, line 651
<?php
function domain_check_response($domain) {
$url = domain_get_path($domain) . drupal_get_path('module', 'domain') .'/tests/200.png';
$response = drupal_http_request($url);
if ($response->code != 200) {
drupal_set_message(t('%server is not responding and may not be configured correctly at the server level.
Server code !code was returned.',
array('%server' => $url, '!code' => $response->code)), 'warning');
}
}
?>