I would like to get the last modified date of a remote file by means of curl. Does anyone know how to do that?
You can activate receiving the headers of the reply with curl_setopt($handle, CURLOPT_HEADER, true). You can also turn on CURLOPT_NOBODY to only receive the headers, and after that explode the result by \r\n and interpret the single headers. The header Last-Modified is the one that you are interested in.