KLanding/config/TEST.php

15 lines
357 B
PHP
Raw Normal View History

2016-01-29 11:20:36 +00:00
<select name="menu1">
<?php
$dir = "../Pic/Upload/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
print "<option value=\"{$file}\">{$file}</option>";
}
closedir($dh);
}
}
?>
</select>