Posted By

mikael12 on 10/02/10


Tagged

last-modified


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bobbym245


Check Last-Modified


 / Published in: PHP
 

  1. function last_modified($url) {
  2. $headers = get_headers($url);
  3. // Return Unix timestamp
  4. return strtotime(str_replace('Last-Modified: ', '', $headers[3]));
  5. }

Report this snippet  

You need to login to post a comment.