View Single Post
Old 08-03-2009, 08:31 AM  
daveylapoo
Confirmed User
 
Join Date: Dec 2003
Posts: 423
Quote:
Originally Posted by Killswitch View Post
That will only work for the page it's on, for what he wants, this is a better solution...

PHP Code:
<?php
// outputs e.g.  somefile.txt was last modified: August 03 2009 01:43:23.

$filename 'somefile.txt';
if (
file_exists($filename)) {
    echo 
"$filename was last modified: " date ("F d Y H:i:s."filemtime($filename));
}
?>
Thanks, that looks like it's close.

However, what I need is a div section that will call the last 3 (or an assignable number) of .html pages that have been uploaded to a site, then display their URLS as a list using their page titles as anchor text.

Here is a hack version of how the code 'might' look:

<div class = "pages last updated">
<h3>Recent Updates</h3>
{foreach from=$pagelastuploaded key=title item=url}
<li><a href="{$url}">{$title}</a><li>
</div>

Obviously that's not going to work, but hopefully gives a better idea of what I need done.

Again, happy to pay a programmer to hash this out.
daveylapoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote