I would like to get the last modified date of a remote file by means of curl. Does anyone know how to do that?
Sometimes header come with different upper lower case, this should help:
function remoteFileData($f) { $h = get_headers($f, 1); if (stristr($h[0], '200')) { foreach($h as $k=>$v) { if(strtolower(trim($k))=="last-modified") return $v; } } }