RE: [PHP] date/time of current page
| From: | chip dot wiegand at simrad dot com | Date: | Tue, 11 Sep 2001 21:53:01 +0000 |
| Subject: | RE: [PHP] date/time of current page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66965@lists.php.net to get a copy of this message | ||
"Michael Geier, CDM Systems Admin" <mgeier@cdmsports.com> on 09/11/2001
11:46:50 PM
Internet mail from:
To: "Jack Dempsey" <dempsejn@georgetown.edu>, <chip.wiegand@simrad.com>,
<php-general@lists.php.net>
cc:
Subject: RE: [PHP] date/time of current page
<script language="javascript">
document.write('some text ' + document.lastmodified + ' some other text.');
</script>
Surely it can be done in PHP, which doesn't, of course, depend on whether
or not the visitor has some options disabled or enabled in their browser.
--
Chip
-----Original Message-----
From: Jack Dempsey [mailto:dempsejn@georgetown.edu]
Sent: Tuesday, September 11, 2001 4:42 PM
To: chip.wiegand@simrad.com; php-general@lists.php.net
Subject: RE: [PHP] date/time of current page
have you tried parsing out the name from $PHP_SELF?
I would think that php wouldn't care if it gets 'index.php' or (some
processing) "index.php", know what i mean?
jack
-----Original Message-----
From: chip.wiegand@simrad.com [mailto:chip.wiegand@simrad.com]
Sent: Tuesday, September 11, 2001 1:01 PM
To: php-general@lists.php.net
Subject: [PHP] date/time of current page
I want to put, into a footer include file, the last modified date of the
current
file being viewed. I have the following code that works when I hard code
the
file name -
<?
$dt=date("D, F d, Y g:i:s A", filemtime("index.php"));
echo $dt;
?>
But of course that won't work as a footer for a site with over two hundred
pages.
What is the parameter for the current page? I tried php_self but that
didn't
work
properly (it returned Dec 31 1969).
--
Chip Wiegand
Simrad, Inc
chip.wiegand@simrad.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net