Пример #1
0
 /**
  * Grab some file from the internets
  *
  * @param string $url
  * @return string $data
  */
 public static function Grab($url)
 {
     $data = '';
     $url = str_replace(" ", "+", $url);
     $data = Internet::GrabSimple($url);
     if (!empty($data)) {
         return $data;
     }
     $data = Internet::GrabCurl($url);
     if (!empty($data)) {
         return $data;
     }
     $data = Internet::GrabSockets($url);
     return $data;
 }