Re: Directory Date/Time

From: Date: Mon, 27 Aug 2001 17:51:14 +0000
Subject: Re: Directory Date/Time
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9079@lists.php.net to get a copy of this message
I could really use some help on this .. I know there must be someone out there who knows: a) is it possible to get the date/time from a directory in windows (win2k) b) if it is possible .. then how As mentioned in my original post I have tried both filemtime and fileatime. Here are the specific lines .. <snip> $current_dir = "h:\my music"; $dir = opendir($current_dir); echo "Upload Directory is $current_dir<br>"; echo "Directory Listing:<br><hr><br>"; while ($file = readdir($dir)) { echo "$file&nbsp;&nbsp;"; echo date("j F Y H:i",filemtime($file)) . "<br>"; echo date("j F Y H:i",fileatime($file)) . "<br>"; </snip> There will be no date except for the . and .. directories. The rest will be 31 december 1969. Now this was a great year but ... So anyone with good info please respond. I need to get this working Thanks DSig On Sun, 26 Aug 2001 14:43:55 -0700, dsig@teleport.com (David Tod Sigafoos) wrote: >I am trying to get the date/time off of a directory. > >I have tried both fileatime and filemtime but both return a null > >Any ideas? Sample of working code? > > > >-- >DSig ````` >David Tod Sigafoos ( O O ) >mailto:dsig@teleport.com _______oOOo__( )__oOOo_______ > >Using 'The Bat' 1.53 Beta/4 >

« previous php.windows (#9079) next »