public static function FeedImport::getXMLStatus in Feed Import 7
Get url status
Parameters
string $url: URL to XML file
Return value
array Info about status
File
- ./
feed_import.inc.php, line 371 - Feed import class for parsing and processing content
Class
- FeedImport
- @file Feed import class for parsing and processing content
Code
public static function getXMLStatus($url) {
try {
$fp = fopen($url, 'rb');
stream_set_timeout($fp, 1);
$meta = stream_get_meta_data($fp);
fclose($fp);
return $meta;
} catch (Exception $e) {
return array();
}
}