Пример #1
0
 function decideStreamToTmpFile(&$header, &$match_array)
 {
     // Get the content-type from header
     $content_type = phpcrawlerutils::getHeaderTag("content-type", $header);
     // Should it be received to memory ?
     @reset($match_array);
     while (list($x) = @each($match_array)) {
         if (preg_match($match_array[$x], $content_type)) {
             return true;
             break;
         }
     }
     return false;
 }