Here's a quick HOWTO in figuring out how to
accomplish your goal.
First, after going here:
http://www.php.net/filemtime
You'll notice that filemtime() returns a unix
timestamp. And after going here:
http://www.php.net/date
You'll notice that date() takes on two
arguments/parameters w
the date() function takes two arguments.
$date_time_format = "m-d-Y";
echo date($date_time_format, $unix_time_string);
Jim Lucas
- Original Message -
From: "_michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 11:15 A
tight i have tried what you said:
$last_mod = filemtime($file);
$tdate = date($last_mod);
but now the output is in this format - c707-b076
sorry to be ask again but can you give me more of a clue as you've probably
guessed - i'm a novice
thanks
--
PHP General
On Thursday 06 June 2002 01:34, _michael wrote:
> i am trying to find out when my files were last modified (accessing all
> files on the server is not a problem)
>
> to try and find this i am using: filemtime($file) - but this ruturns a
> string - 1015171598
>
> what is the format of the string?
4 matches
Mail list logo