Re: Fileinformation

From: Date: Thu, 31 Aug 2000 15:41:24 +0000
Subject: Re: Fileinformation
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2349@lists.php.net to get a copy of this message
Ok, i got it working now! Sorry for the question. If anyone's interested, here's the working code: $path = "d:\\upload\\"; $handle=opendir($path); while ($file = readdir($handle)) { $flename = "$path$file"; echo $flename, " ", filesize($flename), "<br>"; } closedir($handle); Bye, Markus ----- Original Message ----- From: "Markus Fruhmann" <fruhmann@irt.de> To: "Php-Windows (E-mail)" <php-windows@lists.php.net> Sent: Thursday, August 31, 2000 5:08 PM Subject: [PHP-WIN] Fileinformation Hi, i want to get the information about filesize, date of last changes ans so on of files in a specific directory. I tried this code: <? $handle=opendir("d:\audio"); echo $handle, "<br><br>"; while ($file = readdir($handle)) { echo $file, " ", filesize($file), "<br>"; } closedir($handle); ?> but the only thing that works is to show the directory contents. I'm getting Filesize 0 for the "updirectory symbols" . and .. ! For Filesize i don't get anything. Has anyone else tried this under Windows NT? Hoping for help, Markus

« previous php.windows (#2349) next »