Reply to Re: need PHP to read file date in directory

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация