Page 1 of 1

How to find the timestamp of a file using php

Posted: Thu May 29, 2008 7:30 am
by krishna.p
hi experts,
i am a newbie to php. i want to know how to find the timestamp value of a file. simply saying i want to get the timestamp value..i.e.. last modified timestamp value using php. please tell me if there is any specific function for that. would appreciate if you could give me a sample code snippet.
Thanks in advance...
krishna.

Re: How to find the timestamp of a file using php

Posted: Thu May 29, 2008 9:50 am
by pickle
filemtime(), stat(). Look in the Filesystem section of the PHP Docs.

Re: How to find the timestamp of a file using php

Posted: Thu May 29, 2008 10:00 am
by krishna.p
pickle wrote:filemtime(), stat(). Look in the Filesystem section of the PHP Docs.
thanks for the reply...i am actually looking for it...