<?php $filesize; $ext; $dir = "video/"; echo '<br>'; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { //echo "filename: $file :<br> filetype: " . filetype($dir . $file) . "\n"; $sizeoffile = @filesize("video/".$file); $ext = pathinfo($file, PATHINFO_EXTENSION); stat(iconv('UTF-8', 'ISO-8859-1', $file)); echo '<br>'.$sizeoffile ." extention:".$ext; } closedir($dh); } } echo '<br>'; ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)