I am trying to use getlastmod() and am noticing some problems. If I say:
$date_lastmod = date("F j, Y", getlastmod("/home/httpd/html/images/ad.pdf"));
in a file that is included into default.php and echo $date_lastmod in default.php the date that is displayed is the date that default.php is modified. If I touch ad.pdf, the date doesn't change. If I touch default.php, the date changes to today.
I don't understand the behavior. Any suggestions? The idea is to automatically display the date the ad was last updated in the alt tag for the ad link.
The even worse part is it had worked and I don't know when it stopped working.
Any help greatly appreciated.