Suggested fixes are applied

This commit is contained in:
SovereigntyIsNotFreedom 2025-04-13 19:05:59 +01:00
parent 4837034ec3
commit e21455540e
4 changed files with 39 additions and 34 deletions

View file

@ -1,18 +1,3 @@
<?php
// 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 : filetype: " . filetype($dir . $file) . "\n";
}
closedir($dh);
}
}
?>
<!DOCTYPE html>
<html>
<head>