Check Last-Modified


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.