Re: Date

From: Date: Tue, 11 Dec 2001 22:41:27 +0000
Subject: Re: Date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77367@lists.php.net to get a copy of this message
----- Original Message ----- From: "Brian V Bonini" <b-bonini@home.com> To: "PHP Lists" <php-general@lists.php.net> Sent: Tuesday, December 11, 2001 3:43 PM Subject: [PHP] Date Try instead.. echo "Last Modified: " . date("j F Y H:i", filetime($your_file_path)); I don't know exactly what the stat() funciton returns, but the above method works for me. Does anyone have any input for my questions? -Kevin Stone > Why is this: > > <?php > $modified = stat("header.php"); > echo "Last Modified: ".date("F j, Y, g:i a",$modified[9]); > ?> > > returning this: > > Last Modified: December 31, 1969, 7:00 pm > > from this: > > -rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php > > Anyone? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#77367) next »