public function load($url) { $contents = @file_get_contents($url); if ($contents === false) { throw new LdifUrlLoaderException(sprintf('Unable to load URL. Check the URL and your "allow_url_fopen" setting', $url)); } return $contents; }