Posted by NC on 01/10/07 19:04
JackM wrote:
>
> Is there a way to use PHP to read the date of a file that is uploaded
> into a directory and then print out that date on another page?
Yes:
echo date('F, n, Y', filemtime('/texts/filename.pdf'));
> I checked the PHP manual but couldn't find any date/time functions
> that were what I needed.
Check again:
http://www.php.net/fileatime
http://www.php.net/filectime
http://www.php.net/filemtime
Cheers,
NC
[Back to original message]
|