You are here: Re: need PHP to read file date in directory « PHP Programming Language « IT news, forums, messages
Re: need PHP to read file date in directory

Posted by JackM on 01/11/07 00:25

NC 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'));

Everything is coming up with a December 12, 1969 date when I use this.
Any idea why?

 

Navigation:

[Reply to this 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

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