/** * Fetches remote content with Snoopy * * @param $url URL of remote content to fetch */ public static function snoopy_get_file($url) { $remote_content = null; if (Koch_Loader::loadLibrary('snoopy')) { $s = new Snoopy(); $s->fetch($url); if ($s->status == 200) { $content = $s->results; } } if (false === empty($content)) { return $content; } else { return false; } }