|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #687 When using PHP and JavaScript, JS command document.lastModified gives bad date
Submitted: 1998-08-23 16:37 UTC Modified: 1998-08-23 16:47 UTC
From: gemstone at triax dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0.3 OS: Apache 1.2
Private report: No CVE-ID: None
 [1998-08-23 16:37 UTC] gemstone at triax dot com
<title>PHP/JavaScript Conflict</title>

     // anything here will work, doesnt even have to be a require...
JavaScript Last Modified: 
<script language="JavaScript">
     // print out the date the document was last modified
     // returns 12/31/69 16:00:00
     // when PHP is removed from the page, then it returns the correct date


I dont have a clue what modules might be used, you'll have to contact Teleport (
Same goes for the ini file and other info.  

If you would prefer, I can contact them myself and if they cannot resolve the problem, have them contact you.

Thanks for your help either way,
Joshua James


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-23 16:47 UTC] rasmus
Not a bug.  If you want a last-modified header from a dynamically generated page, you should send one using the PHP Header() function.  Alternatively you can turn on the last_modified directive in php3.ini or the corresponding php3_last_modified Apache directive in which case the modification date of your script file will get sent.  Most people don't want browsers to cache old versions of dynamically generated content though.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 07:01:31 2024 UTC