I have a database full of links. I need to write a script to go to each one
and check the modification date of the file. My plan is, once that is
logged, to do this every week and indicate which pages have changed.
What is the simplest approach to this? Do I need to use CURL functions or
/* UNTESTED. */
function get_http_lm_date($url) {
$d = parse_url($url);
if ( !$fp = fsockopen ($d['host'], (isset($d['port'])) ? $d['port'] : '80') )
return FALSE;
fputs($fp, HEAD .$d['path']. HTTP/1.0\r\n\r\n);
while ( !feof($fp) ) {
2 matches
Mail list logo