Get the last modified date of a remote file
You could probably do something like this using curl_getinfo(): <?php $curl = curl_init(‘http://www.example.com/filename.txt’); //don’t fetch the actual page, you only want headers curl_setopt($curl, CURLOPT_NOBODY, true); //stop it from outputting stuff to stdout curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // attempt to retrieve the modification date curl_setopt($curl, CURLOPT_FILETIME, true); $result = curl_exec($curl); if ($result === false) { die (curl_error($curl)); … Read more