Re: [PHP] getting a files time and date.

2002-02-28 Thread Simon Willison
Philip J. Newman wrote: >Is there any way that PHP can grab the time and date of a file ?? > If you mean a file's last-access and last-modified date then yes, you need the stat() function: www.php.net/stat For example: $stat = stat('file.txt'); $modified = date('l, F dS', $stat[9]); $lastacc

[PHP] getting a files time and date.

2002-02-28 Thread Philip J. Newman
Is there any way that PHP can grab the time and date of a file ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php