RE: [PHP] Using javascript "document.lastmodified" in PHP-include

From: Date: Sun, 27 Aug 2000 13:25:13 +0000
Subject: RE: [PHP] Using javascript "document.lastmodified" in PHP-include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13835@lists.php.net to get a copy of this message
I have used the following code (in the included file); <?php echo "<FONT SIZE=1> Updated "; echo date("l<br>jS of F Y <br>H:i:s",filemtime(basename($PHP_SELF) )); echo "</FONT>"; ?> Works for me Regards Andrew Braund > -----Original Message----- > From: Robert Karlsson [mailto:robkar97@astud.chalmers.se] > Sent: Sunday, 27 August 2000 11:42 PM > To: php-general@lists.php.net > Subject: [PHP] Using javascript "document.lastmodified" in > PHP-include > > > Hi, > > It is a nice thing to include PHP-footers (for example > include('../html/footer.html') ) but it seems that the javascript > function document.lastmodified doesn't work correctly when > you do this > (it displays January 1st, 1970)... > > Does anyone know how to work around this problem? > > Thanks! > > Bestm > Robert Karlsson > > ________________________________________________________ > 2D/3D Designer, i2 STUDIOS > Architecture student @ Chalmers University of Technology > > URL: http://www.i2studios.com > E-mail: robert@i2studios.com > > Private site: http://www.astud.chalmers.se/robkar97/

« previous php.general (#13835) next »