"Jack Dempsey" <[EMAIL PROTECTED]> on 09/11/2001 11:42:07 PM
Internet mail from:
To:   <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:

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

I'm not sure what you mean, but here is what I have tried -
--------
<?
$dt=date("m/d/y g:i:s A", filemtime($PHP_SELF));
echo $dt;
?>
--------
I also quoted the string $PHP_SELF with the same results, which look
like this -
--------
12/31/69 4:00:00 PM
--------
So, just what am I doing wrong?
--
Chip


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 1:01 PM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]









-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to