Ed Mullen
2017-07-09 23:17:08 UTC
So, let's say we have a site with x pages and we would like to create a
list of the pages ordered by their last modified date.
How to do using any method, maybe PHP.
BTW, each page on the site contains this footer code:
<?php
$current_file_name = ($_SERVER['REQUEST_URI']);
$current_path = ($_SERVER['DOCUMENT_ROOT']);
$full_name = $current_path.$current_file_name;
$last_modified = filemtime($full_name);
print("This page last changed: ");
print(date("F j, Y - h:i A", $last_modified));
print(" USA Eastern Time");
?>
which displays the last modified date of each page. Not sure if that
even is relevant.
list of the pages ordered by their last modified date.
How to do using any method, maybe PHP.
BTW, each page on the site contains this footer code:
<?php
$current_file_name = ($_SERVER['REQUEST_URI']);
$current_path = ($_SERVER['DOCUMENT_ROOT']);
$full_name = $current_path.$current_file_name;
$last_modified = filemtime($full_name);
print("This page last changed: ");
print(date("F j, Y - h:i A", $last_modified));
print(" USA Eastern Time");
?>
which displays the last modified date of each page. Not sure if that
even is relevant.
--
Ed Mullen
http://edmullen.net/
What is a free gift? Aren't all gifts free?
Ed Mullen
http://edmullen.net/
What is a free gift? Aren't all gifts free?