Re: How can I display lastmodified for all my php-files?
| From: | Jason Sheets | Date: | Sun, 02 Feb 2003 19:32:15 +0000 |
| Subject: | Re: How can I display lastmodified for all my php-files? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134032@lists.php.net to get a copy of this message | ||
Take a look at the getlastmod() function, an example of the usage would
be:
$last_mod = date ("F d Y H:i:s.", getlastmod());
Then you can print or operate on last_mod any way you want, if you don't
want to operate on the date you can just print the return of date.
This information is available in the PHP manual at
http://www.php.net/manual/en/function.getlastmod.php
and
http://www.php.net/manual/en/function.filemtime.php.
Jason
On Sun, 2003-02-02 at 12:08, Øystein Håland wrote:
> In one file I want to display filenames and when these files was last
> modified. I want this to happen even for files in other directories.
> First of all, can it be done with php (I have seen that it is possible using
> SSI), and in that case how?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php