SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP interferes with lastModified function

    I have found a useful script at http://www.whytehouse.com/lastmodified.html which shows the date a page was last modified. I have put it at http://www.pfwd.co.uk/last-modified/...t-modified.htm where it works perfectly. But the same script with a PHP file extension as here http://www.pfwd.co.uk/last-modified/...t-modified.php only shows the current time. There is no PHP in the page, but somehow the PHP processor seems to be upsetting it.

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2003
    Location
    San Francisco
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using PHP's header command to tell PHP to write a Last Modified header? If you want it to reflect the time the file was updated, you'll have to write the header in PHP itself to retrieve that time from the file information and write it into the header.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •