Re: Using date() with the function fileatime() doesn't return accurate timestamp...

From: Date: Thu, 12 Feb 2004 19:53:46 +0000
Subject: Re: Using date() with the function fileatime() doesn't return accurate timestamp...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177538@lists.php.net to get a copy of this message
Oh I understand now. There is a different between fileatime(), filectime() and filemtime(), with a letter 'a', 'c' or 'm'... The one with the m is what work with Unix/Linux.. Scott F. "Scott Fletcher" <scott@abcoa.com> wrote in message news:20040212183554.90027.qmail@pb1.pair.com... > I saw the article at > http://us2.php.net/manual/en/function.fileatime.php and > gave it a shot with the timestamp for the file but it doesn't work correctly > because it only returned the current timestamp (as it is from our watch or > clock) but not the one from the file... > > I had verify that the file is correct and that the date() is working > correctly and that the timeatime() is working correctly if they are tested > independantly, so it is just putting them all three together cause them not > to work right... > > --snip-- > $current_filename = "test.pdf"; > echo (date('F j, Y, h:i a', (fileatime($current_filename)))); > --snip-- > > What did I do wrong?? > > Scott F.

« previous php.general (#177538) next »