note 9560 added to stat
| From: | ngreen at neilsmachine dot com | Date: | Sat, 11 Nov 2000 06:00:13 +0000 |
| Subject: | note 9560 added to stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7592@lists.php.net to get a copy of this message | ||
When you get a time from stat, like the date modified, you'll get a timestamp returned. You
can use date() to convert it into a human readable format:
$modified = stat("yourfile.html");
echo date("l, F dS",$modified[9]);
http://www.php.net/manual/function.stat.php