How to find the timestamp of a file using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
krishna.p
Forum Newbie
Posts: 19
Joined: Fri May 23, 2008 8:12 am

How to find the timestamp of a file using php

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

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

Post by pickle »

filemtime(), stat(). Look in the Filesystem section of the PHP Docs.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
krishna.p
Forum Newbie
Posts: 19
Joined: Fri May 23, 2008 8:12 am

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

Post 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...
Post Reply