Notify users when a PDF (Acrobat) file is updated



I want to let visitors to one of my sites know when a PDF (accessed via a static link address) has been updated without having to manually edit the page. …and without the visitor having to actually view the PDF to check it for themselves.

I believe that a Unix command can obtain the file property, but how do I get that information into (and to update automatically) into the page where the link exists?

The page is at

I want to put something next to the Current Bulletin link like “Updated on 1/21/07” that will use the file date of the target file

I hear that javascript doesn’t have much server-side ability but I am not well-versed in either javascript or unix.


“Man, know thyself.”


The easiest way to do this would be to write a little PHP routine to check when the file was last modified. Put the following into your HTML at the point where you want the date and time to appear:<?php $filename = "bulletin.pdf"; if(file_exists($filename)) { echo date ("F d Y H:i:s.", filemtime($filename)); } ?>Ordinarily, you would change the filename of your page from “SundayBulletin.htm” to “SundayBulletin.php”, but if this is a problem you can always edit (or create) your .htaccess file to include the following line:AddType application/x-httpd-php .htmsi-blog
Max discount on any plan with promocode SCJESSEYTOTAL