You are here

function dsq_url_method in Drupal Most Popular 7

File

modules/mostpopular_disqus/disqusapi/url.php, line 280

Code

function dsq_url_method() {
  if (function_exists('curl_init')) {
    return 'curl';
  }
  else {
    if (ini_get('allow_url_fopen') && function_exists('stream_get_contents')) {
      return 'fopen';
    }
    else {
      return 'fsockopen';
    }
  }
}