$curl = curl_init('http://example.com');
// don't the content, we need the headers
curl_setopt($curl, CURLOPT_NOBODY, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
// get the modified date
curl_setopt($curl, CURLOPT_FILETIME, true);
$result = curl_exec($curl);
if ($result === false)
die(curl_error($curl));
$tm = curl_getinfo($curl, CURLINFO_FILETIME);
if ($tm != -1)
echo date("d-m-Y H:i:s", $tm);
/*
run:
09-08-2013 23:54:35
*/